aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2013-01-04 04:02:23 +0900
committerAkira Matsuda <ronnie@dio.jp>2013-01-04 04:02:23 +0900
commit4b7137efe53a5dd30f7f78b01786281b0522330d (patch)
tree12f2a2bcd8fcbcd1154248dce703e3838f197c04 /activerecord
parentde729af21ed0caea56b2e5cc772270cc864c7d82 (diff)
downloadrails-4b7137efe53a5dd30f7f78b01786281b0522330d.tar.gz
rails-4b7137efe53a5dd30f7f78b01786281b0522330d.tar.bz2
rails-4b7137efe53a5dd30f7f78b01786281b0522330d.zip
need to to_a the Relation to execute SQL here
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/explain_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/explain_test.rb b/activerecord/test/cases/explain_test.rb
index a7e5fdf709..aa2a6d7509 100644
--- a/activerecord/test/cases/explain_test.rb
+++ b/activerecord/test/cases/explain_test.rb
@@ -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