1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Re-add changes_applied doc

[ci skip]
This commit is contained in:
Gannon McGibbon 2018-11-16 11:13:38 -05:00
parent 207588174e
commit 5fb432e9c2

View file

@ -141,7 +141,9 @@ module ActiveModel
@mutations_from_database = nil @mutations_from_database = nil
end end
def changes_applied # :nodoc: # Clears dirty data and moves +changes+ to +previously_changed+ and
# +mutations_from_database+ to +mutations_before_last_save+ respectively.
def changes_applied
unless defined?(@attributes) unless defined?(@attributes)
@previously_changed = changes @previously_changed = changes
end end