aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2017-01-10 19:50:44 +0900
committerAkira Matsuda <ronnie@dio.jp>2017-01-10 19:50:44 +0900
commitc3fa36a88adad52258378c51fdb99363449d8068 (patch)
tree8f33333c8618d0a1c1812e6ac3cc7407094dccd3 /activerecord
parentf7b317175430a2d9300d9c4acfc1f34f4fdb2fbc (diff)
downloadrails-c3fa36a88adad52258378c51fdb99363449d8068.tar.gz
rails-c3fa36a88adad52258378c51fdb99363449d8068.tar.bz2
rails-c3fa36a88adad52258378c51fdb99363449d8068.zip
oops! :scream_cat:
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/query_cache_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/query_cache_test.rb b/activerecord/test/cases/query_cache_test.rb
index 7ee483349f..93a67d0738 100644
--- a/activerecord/test/cases/query_cache_test.rb
+++ b/activerecord/test/cases/query_cache_test.rb
@@ -66,7 +66,7 @@ class QueryCacheTest < ActiveRecord::TestCase
if in_memory_db?
# Separate connections to an in-memory database create an entirely new database,
# with an empty schema etc, so we just stub out this schema on the fly.
- new_pool.with_connection do |connection|
+ ActiveRecord::Base.connection_pool.with_connection do |connection|
connection.create_table :tasks do |t|
t.datetime :starting
t.datetime :ending