mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -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:
parent
7d6f78377a
commit
dcf5caf596
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue