Class: AwsSqsMoniter::Middleware::Server::ActiveRecord::ConnectionPool

Inherits:
Object
  • Object
show all
Defined in:
lib/aws_sqs_moniter/middleware/server/active_record/connection_pool.rb

Instance Method Summary collapse

Instance Method Details

#call(*_args) ⇒ Object



6
7
8
9
10
# File 'lib/aws_sqs_moniter/middleware/server/active_record/connection_pool.rb', line 6

def call(*_args)
  ::ActiveRecord::Base.connection_pool.with_connection do
    yield
  end
end