method

update!

Importance_1
v7.1.3.4 - Show latest stable - 0 notes - Class: ClassMethods
update!(id = :all, attributes) public

Updates the object (or multiple objects) just like #update but calls #update! instead of update, so an exception is raised if the record is invalid and saving will fail.

Show source
Register or log in to add new notes.