Class: Thread
- Inherits:
-
Object
- Object
- Thread
- Defined in:
- lib/zeevex_threadsafe/rails/thread_pool_release.rb
Class Method Summary collapse
Class Method Details
.new ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/zeevex_threadsafe/rails/thread_pool_release.rb', line 3 def new orig_new do begin yield ensure ActiveRecord::Base.connection_pool.release_connection end end end |
.orig_new ⇒ Object
2 |
# File 'lib/zeevex_threadsafe/rails/thread_pool_release.rb', line 2 alias orig_new new |