save(*)
Attempts to save the record and clears changed attributes if successful.
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 31 def save(*) if status = super @previously_changed = changes @changed_attributes.clear end status end