Class: Que::Adapters::ActiveRecord

Inherits:
Base
  • Object
show all
Defined in:
lib/que/adapters/active_record.rb

Instance Method Summary collapse

Methods inherited from Base

#execute, #execute_prepared, #initialize, #wake_worker_after_commit

Constructor Details

This class inherits a constructor from Que::Adapters::Base

Instance Method Details

#checkoutObject



4
5
6
# File 'lib/que/adapters/active_record.rb', line 4

def checkout
  ::ActiveRecord::Base.connection_pool.with_connection { |conn| yield conn.raw_connection }
end