You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: activerecord/lib/active_record/base.rb
+13-10Lines changed: 13 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -810,25 +810,28 @@ def destroy(id)
810
810
811
811
# Updates all records with details given if they match a set of conditions supplied, limits and order can
812
812
# also be supplied. This method constructs a single SQL UPDATE statement and sends it straight to the
813
-
# database. It does not instantiate the involved models and it does not trigger Active Record callbacks.
813
+
# database. It does not instantiate the involved models and it does not trigger Active Record callbacks
814
+
# or validations.
814
815
#
815
816
# ==== Parameters
816
817
#
817
-
# * +updates+ - A string of column and value pairs that will be set on any records that match conditions. This creates the SET clause of the generated SQL.
818
-
# * +conditions+ - An SQL fragment like "administrator = 1" or [ "user_name = ?", username ]. See conditions in the intro for more info.
818
+
# * +updates+ - A string, array, or hash representing the SET part of an SQL statement.
819
+
# * +conditions+ - A string, array, or hash representing the WHERE part of an SQL statement. See conditions in the intro.
819
820
# * +options+ - Additional options are <tt>:limit</tt> and <tt>:order</tt>, see the examples for usage.
820
821
#
821
822
# ==== Examples
822
823
#
823
-
# # Update all billing objects with the 3 different attributes given
0 commit comments