Method: Superstore::AttributeMethods::Dirty#save
- Defined in:
- lib/superstore/attribute_methods/dirty.rb
#save ⇒ Object
Attempts to save the record and clears changed attributes if successful.
8 9 10 11 12 13 14 |
# File 'lib/superstore/attribute_methods/dirty.rb', line 8 def save(*) #:nodoc: if status = super @previously_changed = changes @changed_attributes = {} end status end |