instance method
save
Ruby on Rails 7.1.6
Since v3.0.20Signature
save(**options)
The validation process on save can be skipped by passing validate: false. The validation context can be changed by passing context: context. The regular ActiveRecord::Base#save method is replaced with this when the validations module is mixed in, which it is by default.
Parameters
-
optionskeyrest
Source
# File activerecord/lib/active_record/validations.rb, line 48
def save(**options)
perform_validations(options) ? super : false
end
Defined in activerecord/lib/active_record/validations.rb line 48
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Validations