Class: Que::Adapters::ActiveRecord
- 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
#checkout ⇒ Object
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 |