method

update!

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: ActiveRecord::Relation
update!(id = :all, attributes) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/relation.rb, line 496
    def update!(id = :all, attributes) # :nodoc:
      if id == :all
        each { |record| record.update!(attributes) }
      else
        klass.update!(id, attributes)
      end
    end
Register or log in to add new notes.