Method: ActiveRecord::AttributeMethods::Dirty#save
- Defined in:
- lib/active_record/attribute_methods/dirty.rb
#save ⇒ Object
Attempts to save the record and clears changed attributes if successful.
31 32 33 34 35 36 37 |
# File 'lib/active_record/attribute_methods/dirty.rb', line 31 def save(*) if status = super @previously_changed = changes @changed_attributes.clear end status end |