instance method
save
Ruby on Rails 5.1.7
Since v5.1.7 Last seen in v5.1.7Signature
save(*)
Attempts to save the record and clears changed attributes if successful.
Parameters
-
argsrest
Source
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 34
def save(*)
if status = super
changes_applied
end
status
end
Defined in activerecord/lib/active_record/attribute_methods/dirty.rb line 34
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AttributeMethods::Dirty