Permalink
Browse files

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
  • Loading branch information...
dhh committed Jul 22, 2005
1 parent 7d6f783 commit dcf5caf59670e2542bfeba1da46515ee5aa5fa19
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/lib/active_record/query_cache.rb
@@ -10,7 +10,7 @@ def clear_query_cache
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 @@ def delete(sql, name = nil)
end
private
- def method_missing(method, *arguments)
- @connection.send(method, *arguments)
+ def method_missing(method, *arguments, &proc)
+ @connection.send(method, *arguments, &proc)
end
end

0 comments on commit dcf5caf

Please sign in to comment.