Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

deprecated clear_stale_active_connections! can call #reap instead of …

…no-op'ing, #reap does the same thing
  • Loading branch information...
commit 27ebb3dc8cb57d17a2ef7aa0e358489bc7bf4c86 1 parent ca99beb
Jonathan Rochkind jrochkind authored
3  activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
View
@@ -186,8 +186,9 @@ def clear_reloadable_connections!
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.
Please sign in to comment.
Something went wrong with that request. Please try again.