1
0
Fork 0
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:
Akira Matsuda 2013-01-04 04:02:23 +09:00
parent de729af21e
commit 4b7137efe5

View file

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