instance method
save
Ruby on Rails 5.0.7.2
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 43
def save(options={})
perform_validations(options) ? super : false
end
Defined in activerecord/lib/active_record/validations.rb line 43
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Validations