Method: ActiveMessaging::Gateway.prepare_application
- Defined in:
- lib/activemessaging/gateway.rb
.prepare_application ⇒ Object
203 204 205 206 207 208 209 210 211 |
# File 'lib/activemessaging/gateway.rb', line 203 def prepare_application return unless defined?(ActiveRecord) if ActiveRecord::VERSION::MAJOR >= 4 ActiveRecord::Base.connection_pool.connections.map(&:verify!) else ActiveRecord::Base.verify_active_connections! end end |