Method: ActiveRecord::Validations#save!
- Defined in:
- activerecord/lib/active_record/validations.rb
#save!(**options) ⇒ Object
Attempts to save the record just like ActiveRecord::Base#save but will raise an ActiveRecord::RecordInvalid exception instead of returning false if the record is not valid.
53 54 55 |
# File 'activerecord/lib/active_record/validations.rb', line 53 def save!(**) perform_validations() ? super : raise_validation_error end |