From 27ebb3dc8cb57d17a2ef7aa0e358489bc7bf4c86 Mon Sep 17 00:00:00 2001 From: Jonathan Rochkind Date: Mon, 12 Mar 2012 11:14:22 -0400 Subject: deprecated clear_stale_active_connections! can call #reap instead of no-op'ing, #reap does the same thing --- .../lib/active_record/connection_adapters/abstract/connection_pool.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'activerecord/lib/active_record') 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 eb88f191a7..0d61d1d3f3 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb @@ -186,8 +186,9 @@ module ActiveRecord end def clear_stale_cached_connections! # :nodoc: + reap end - deprecate :clear_stale_cached_connections! + deprecate :clear_stale_cached_connections! => "Please use #reap instead" # Check-out a database connection from the pool, indicating that you want # to use it. You should call #checkin when you no longer need this. -- cgit v1.2.3