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
This commit is contained in:
David Heinemeier Hansson 2005-07-22 06:25:32 +00:00
parent 7d6f78377a
commit dcf5caf596

@ -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