aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-10-03 11:37:10 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-10-03 11:37:10 -0300
commitc48c111bb2aa13d72f5ae6cf7d51a921766c7dfe (patch)
tree0b8fca50037791e67f8c5534d80bcc59db6114c9 /activemodel/lib
parent2dabee25176b6fef7255bbcc1f9641cdd5d6514c (diff)
parent0e655873d4f41922fa2614919342482b1dbd2343 (diff)
downloadrails-c48c111bb2aa13d72f5ae6cf7d51a921766c7dfe.tar.gz
rails-c48c111bb2aa13d72f5ae6cf7d51a921766c7dfe.tar.bz2
rails-c48c111bb2aa13d72f5ae6cf7d51a921766c7dfe.zip
Merge pull request #8791 from griffinmyers/master
Updated DirtyModel's @changed_attributes hash to be symbol/string agnostic Conflicts: activemodel/CHANGELOG.md
Diffstat (limited to 'activemodel/lib')
-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 98e7d84608..c5f1b3f11a 100644
--- a/activemodel/lib/active_model/dirty.rb
+++ b/activemodel/lib/active_model/dirty.rb
@@ -145,7 +145,7 @@ module ActiveModel
# person.name = 'robert'
# person.changed_attributes # => {"name" => "bob"}
def changed_attributes
- @changed_attributes ||= {}
+ @changed_attributes ||= ActiveSupport::HashWithIndifferentAccess.new
end
# Handle <tt>*_changed?</tt> for +method_missing+.