method
update!
v7.2.3 -
Show latest stable
- Class:
ActiveRecord::Relation
update!(id = :all, attributes)public
No documentation available.
# File activerecord/lib/active_record/relation.rb, line 632
def update!(id = :all, attributes) # :nodoc:
if id == :all
each { |record| record.update!(attributes) }
else
klass.update!(id, attributes)
end
end