diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-02 10:18:05 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-02 10:18:26 -0800 |
commit | 203962d89e863e1ab466bd65651d79a2f12a1fad (patch) | |
tree | 03ee5da4d5e303499c00e9c0dc043049fb95e522 /activerecord | |
parent | cd3bdb388b04451c740ac09f748a2ec711f344ef (diff) | |
download | rails-203962d89e863e1ab466bd65651d79a2f12a1fad.tar.gz rails-203962d89e863e1ab466bd65651d79a2f12a1fad.tar.bz2 rails-203962d89e863e1ab466bd65651d79a2f12a1fad.zip |
*args is already an array. :'(
Diffstat (limited to 'activerecord')
-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 049fbc3634..d8338e2f5e 100644 --- a/activerecord/lib/active_record/store.rb +++ b/activerecord/lib/active_record/store.rb @@ -34,7 +34,7 @@ module ActiveRecord end def store_accessor(store_attribute, *keys) - Array(keys).flatten.each do |key| + keys.flatten.each do |key| define_method("#{key}=") do |value| send(store_attribute)[key] = value send("#{store_attribute}_will_change!") |