Class: MicroQ::Middleware::Server::Connection
- Inherits:
-
Object
- Object
- MicroQ::Middleware::Server::Connection
- Defined in:
- lib/micro_q/middleware/server/connection.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/micro_q/middleware/server/connection.rb', line 5 def call(*) yield ensure if defined?(ActiveRecord::Base) ActiveRecord::Base.clear_active_connections! end end |