diff options
author | Akira Matsuda <ronnie@dio.jp> | 2013-02-18 23:57:37 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2013-02-18 23:59:48 +0900 |
commit | 57b0ae8011ab0502253631bd6fdbc0fc838b593e (patch) | |
tree | e7249f5fb7015446d089e7de6d4e83d6c87bf4d5 /activerecord/lib/active_record/connection_adapters | |
parent | b04c81d367323849a0019f6964639efaad0e9df0 (diff) | |
download | rails-57b0ae8011ab0502253631bd6fdbc0fc838b593e.tar.gz rails-57b0ae8011ab0502253631bd6fdbc0fc838b593e.tar.bz2 rails-57b0ae8011ab0502253631bd6fdbc0fc838b593e.zip |
Gist URLs are now namespaced
see: https://github.com/blog/1406-namespaced-gists
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, 4 insertions, 4 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 847d9da6e6..1754e424b8 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb @@ -577,10 +577,10 @@ module ActiveRecord # When a connection is established or removed, we invalidate the cache. # # Ideally we would use #fetch here, as class_to_pool[klass] may sometimes be nil. - # However, benchmarking (https://gist.github.com/3552829) showed that #fetch is - # significantly slower than #[]. So in the nil case, no caching will take place, - # but that's ok since the nil case is not the common one that we wish to optimise - # for. + # However, benchmarking (https://gist.github.com/jonleighton/3552829) showed that + # #fetch is significantly slower than #[]. So in the nil case, no caching will + # take place, but that's ok since the nil case is not the common one that we wish + # to optimise for. def retrieve_connection_pool(klass) class_to_pool[klass.name] ||= begin until pool = pool_for(klass) |