aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-01-20 23:00:17 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-01-20 23:00:17 -0200
commitb8302bcfdaec2a9e7658262d6feeb535c572922d (patch)
tree6c4b3ba94cb21ed23a67196f38fe3c23857b93fe /activemodel/lib/active_model
parent06a00038efbbaef127ad8908fffea6799c577440 (diff)
downloadrails-b8302bcfdaec2a9e7658262d6feeb535c572922d.tar.gz
rails-b8302bcfdaec2a9e7658262d6feeb535c572922d.tar.bz2
rails-b8302bcfdaec2a9e7658262d6feeb535c572922d.zip
Forgot to push this change in the parent commit
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r--activemodel/lib/active_model/dirty.rb2
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