diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-10-03 11:37:10 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-10-03 11:37:10 -0300 |
commit | c48c111bb2aa13d72f5ae6cf7d51a921766c7dfe (patch) | |
tree | 0b8fca50037791e67f8c5534d80bcc59db6114c9 /activemodel/lib | |
parent | 2dabee25176b6fef7255bbcc1f9641cdd5d6514c (diff) | |
parent | 0e655873d4f41922fa2614919342482b1dbd2343 (diff) | |
download | rails-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.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 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+. |