File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
activerecord/lib/active_record Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -456,7 +456,7 @@ def update!(id = :all, attributes)
456
456
end
457
457
458
458
# Accepts a list of attribute names to be used in the WHERE clause
459
- # of SELECT / UPDATE / DELETE queries and in the ORDER BY clause for ` #first` and ` #last` finder methods.
459
+ # of SELECT / UPDATE / DELETE queries and in the ORDER BY clause for + #first+ and + #last+ finder methods.
460
460
#
461
461
# class Developer < ActiveRecord::Base
462
462
# query_constraints :company_id, :id
@@ -469,7 +469,7 @@ def update!(id = :all, attributes)
469
469
# developer.update!(name: "Nikita")
470
470
# # UPDATE "developers" SET "name" = 'Nikita' WHERE "developers"."company_id" = 1 AND "developers"."id" = 1
471
471
#
472
- # It is possible to update attribute used in the query_by clause:
472
+ # # It is possible to update an attribute used in the query_constraints clause:
473
473
# developer.update!(company_id: 2)
474
474
# # UPDATE "developers" SET "company_id" = 2 WHERE "developers"."company_id" = 1 AND "developers"."id" = 1
475
475
#
You can’t perform that action at this time.
0 commit comments