diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-22 06:25:32 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-22 06:25:32 +0000 |
commit | dcf5caf59670e2542bfeba1da46515ee5aa5fa19 (patch) | |
tree | 17ac58dbb7ffc9ec2adfa9a9a57e233cf174d8a3 /activerecord/lib | |
parent | 7d6f78377a1cc7208edf16af15fd3671dc9d3c33 (diff) | |
download | rails-dcf5caf59670e2542bfeba1da46515ee5aa5fa19.tar.gz rails-dcf5caf59670e2542bfeba1da46515ee5aa5fa19.tar.bz2 rails-dcf5caf59670e2542bfeba1da46515ee5aa5fa19.zip |
A bit more work on the still unfinished query cache #1722
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1877 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
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 |