mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
need to to_a the Relation to execute SQL here
This commit is contained in:
parent
de729af21e
commit
4b7137efe5
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ if ActiveRecord::Base.connection.supports_explain?
|
|||
base.expects(:collecting_sqls_for_explain).never
|
||||
base.logger.expects(:warn).never
|
||||
base.silence_auto_explain do
|
||||
with_threshold(0) { Car.all }
|
||||
with_threshold(0) { Car.all.to_a }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue