Class: MicroQ::Middleware::Server::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/micro_q/middleware/server/connection.rb

Instance Method Summary collapse

Instance Method Details

#callObject



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