diff options
author | Ivan Kataitsev <ivan.kataitsev@gmail.com> | 2013-04-24 23:56:25 +0400 |
---|---|---|
committer | Ivan Kataitsev <ivan.kataitsev@gmail.com> | 2013-04-25 01:43:28 +0400 |
commit | df0cb9e34cf922656426f8958a41b4bbe1a0058c (patch) | |
tree | e52fa6ad33be27e69006992eb500f5829d6646b0 /activerecord/lib/active_record/connection_adapters | |
parent | 6f405df2c0ba22b30b6d52028e467aa5bee59429 (diff) | |
download | rails-df0cb9e34cf922656426f8958a41b4bbe1a0058c.tar.gz rails-df0cb9e34cf922656426f8958a41b4bbe1a0058c.tar.bz2 rails-df0cb9e34cf922656426f8958a41b4bbe1a0058c.zip |
Move method used only in the test to the test code itself
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb b/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb index bf2f945448..816b397fcf 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb @@ -253,14 +253,6 @@ module ActiveRecord @available = Queue.new self end - # Hack for tests to be able to add connections. Do not call outside of tests - def insert_connection_for_test!(c) #:nodoc: - synchronize do - @connections << c - @available.add c - end - end - # Retrieve the connection associated with the current thread, or call # #checkout to obtain one if necessary. # |