mirror of
https://github.com/github/rails.git
synced 2026-01-25 22:38:33 -05:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user