Class: PikaQue::Middleware::ActiveRecord

Inherits:
Object
  • Object
show all
Defined in:
lib/pika_que/middleware/active_record.rb

Instance Method Summary collapse

Instance Method Details

#call(*args) ⇒ Object



5
6
7
8
9
# File 'lib/pika_que/middleware/active_record.rb', line 5

def call(*args)
  yield
ensure
  ::ActiveRecord::Base.clear_active_connections!
end