instance method
changes_applied
Ruby on Rails 4.1.16
Since v4.1.16 PrivateSignature
changes_applied()
Removes current changes and makes them accessible through previous_changes.
Source
# File activemodel/lib/active_model/dirty.rb, line 168
def changes_applied
@previously_changed = changes
@changed_attributes = ActiveSupport::HashWithIndifferentAccess.new
end
Defined in activemodel/lib/active_model/dirty.rb line 168
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Dirty