module ActiveModel::Dirty

Private Instance Methods

clear_attribute_changes(attributes) click to toggle source

Remove changes information for the provided attributes.

# File lib/atomically/patches/clear_attribute_changes.rb, line 13
def clear_attribute_changes(attributes) # :doc:
  attributes_changed_by_setter.except!(*attributes)
end
set_attribute_was(attr, old_value) click to toggle source

Force an attribute to have a particular “before” value

# File lib/atomically/patches/clear_attribute_changes.rb, line 8
def set_attribute_was(attr, old_value)
  attributes_changed_by_setter[attr] = old_value
end