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