aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorJonathan Rochkind <jonathan@dnil.net>2012-03-12 11:14:22 -0400
committerJonathan Rochkind <jonathan@dnil.net>2012-03-12 11:14:22 -0400
commit27ebb3dc8cb57d17a2ef7aa0e358489bc7bf4c86 (patch)
tree7d32322eb9e632d5f3abb9737d881be449b708b7 /activerecord/lib/active_record
parentca99beb4a9fc983603e2427255afa97c63cc4cfc (diff)
downloadrails-27ebb3dc8cb57d17a2ef7aa0e358489bc7bf4c86.tar.gz
rails-27ebb3dc8cb57d17a2ef7aa0e358489bc7bf4c86.tar.bz2
rails-27ebb3dc8cb57d17a2ef7aa0e358489bc7bf4c86.zip
deprecated clear_stale_active_connections! can call #reap instead of no-op'ing, #reap does the same thing
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb3
1 files changed, 2 insertions, 1 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 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.