Forgot to push this change in the parent commit
This commit is contained in:
parent
06a00038ef
commit
b8302bcfda
@ -136,7 +136,7 @@ def changes
|
||||
# person.save
|
||||
# person.previous_changes # => {"name" => ["bob", "robert"]}
|
||||
def previous_changes
|
||||
@previously_changed ||= {}
|
||||
@previously_changed ||= ActiveSupport::HashWithIndifferentAccess.new
|
||||
end
|
||||
|
||||
# Returns a hash of the attributes with unsaved changes indicating their original
|
||||
|
Loading…
Reference in New Issue
Block a user