diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-01-20 23:00:17 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-01-20 23:00:17 -0200 |
commit | b8302bcfdaec2a9e7658262d6feeb535c572922d (patch) | |
tree | 6c4b3ba94cb21ed23a67196f38fe3c23857b93fe /activemodel/lib | |
parent | 06a00038efbbaef127ad8908fffea6799c577440 (diff) | |
download | rails-b8302bcfdaec2a9e7658262d6feeb535c572922d.tar.gz rails-b8302bcfdaec2a9e7658262d6feeb535c572922d.tar.bz2 rails-b8302bcfdaec2a9e7658262d6feeb535c572922d.zip |
Forgot to push this change in the parent commit
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/dirty.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/dirty.rb b/activemodel/lib/active_model/dirty.rb index 72e2224926..98ffffeb10 100644 --- a/activemodel/lib/active_model/dirty.rb +++ b/activemodel/lib/active_model/dirty.rb @@ -136,7 +136,7 @@ module ActiveModel # 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 |