Permalink
Browse files

Forgot to push this change in the parent commit

  • Loading branch information...
rafaelfranca committed Jan 21, 2014
1 parent 06a0003 commit b8302bcfdaec2a9e7658262d6feeb535c572922d
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/lib/active_model/dirty.rb
@@ -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

0 comments on commit b8302bc

Please sign in to comment.