diff options
| author | Janko Marohnić <janko.marohnic@gmail.com> | 2013-04-29 20:39:18 +0200 | 
|---|---|---|
| committer | Janko Marohnić <janko.marohnic@gmail.com> | 2013-04-29 20:39:52 +0200 | 
| commit | 5519468523b2017df7b36e608c977920f5a54a88 (patch) | |
| tree | 95e7a0a76182a22c9e32addfb3c595684620ebb9 /activerecord/lib | |
| parent | 9d7a748a5174224ead4d44aedc3849d1d1e37b18 (diff) | |
| download | rails-5519468523b2017df7b36e608c977920f5a54a88.tar.gz rails-5519468523b2017df7b36e608c977920f5a54a88.tar.bz2 rails-5519468523b2017df7b36e608c977920f5a54a88.zip  | |
Fix ActiveRecord::Store not tracking changes
Diffstat (limited to 'activerecord/lib')
| -rw-r--r-- | activerecord/lib/active_record/store.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/store.rb b/activerecord/lib/active_record/store.rb index 49d01de365..bacb78e2e1 100644 --- a/activerecord/lib/active_record/store.rb +++ b/activerecord/lib/active_record/store.rb @@ -37,8 +37,8 @@ module ActiveRecord          Array(keys).flatten.each do |key|            define_method("#{key}=") do |value|              send("#{store_attribute}=", {}) unless send(store_attribute).is_a?(Hash) -            send(store_attribute)[key] = value              send("#{store_attribute}_will_change!") +            send(store_attribute)[key] = value            end            define_method(key) do  | 
