method
update
v5.1.7 -
Show latest stable
- Class:
ActiveRecord::Persistence
update(attributes)public
Updates the attributes of the model from the passed-in hash and saves the record, all wrapped in a transaction. If the object is invalid, the saving will fail and false will be returned.