method

update!

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActiveRecord::Persistence
update!(attributes) public

Updates its receiver just like #update but calls #save! instead of save, so an exception is raised if the record is invalid and saving will fail.

Show source
Register or log in to add new notes.