instance method
clear_attribute_changes
Ruby on Rails 4.2.9
Since v4.2.9 PrivateSignature
clear_attribute_changes(attributes)
Remove changes information for the provided attributes.
Parameters
-
attributesreq
Source
# File activemodel/lib/active_model/dirty.rb, line 267
def clear_attribute_changes(attributes) # :doc:
attributes_changed_by_setter.except!(*attributes)
end
Defined in activemodel/lib/active_model/dirty.rb line 267
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Dirty