diff options
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/query_cache.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/query_cache.rb b/activerecord/lib/active_record/query_cache.rb index c41567375f..794caff59c 100644 --- a/activerecord/lib/active_record/query_cache.rb +++ b/activerecord/lib/active_record/query_cache.rb @@ -10,7 +10,7 @@ module ActiveRecord end def select_all(sql, name = nil) - @query_cache[sql] ||= @connection.select_all(sql, name) + (@query_cache[sql] ||= @connection.select_all(sql, name)).dup end def select_one(sql, name = nil) @@ -37,8 +37,8 @@ module ActiveRecord end private - def method_missing(method, *arguments) - @connection.send(method, *arguments) + def method_missing(method, *arguments, &proc) + @connection.send(method, *arguments, &proc) end end |