method

update

rails 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.