Class: ActiveRecord::ConnectionAdapters::ConnectionPool
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::ConnectionPool
- Defined in:
- lib/ar_preconnect.rb
Instance Method Summary collapse
Instance Method Details
#preconnect! ⇒ Object
3 4 5 6 7 8 |
# File 'lib/ar_preconnect.rb', line 3 def preconnect! (size - 1) .times .map { checkout } .each { |c| checkin(c) } end |