From 203962d89e863e1ab466bd65651d79a2f12a1fad Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 2 Feb 2012 10:18:05 -0800 Subject: *args is already an array. :'( --- activerecord/lib/active_record/store.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord') 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!") -- cgit v1.2.3