method
enqueue_after_transaction_commit?
rails latest stable - Class:
ActiveJob::QueueAdapters::AbstractAdapter
enqueue_after_transaction_commit?()public
Defines whether enqueuing should happen implicitly to after commit when called from inside a transaction. Most adapters should return true, but some adapters that use the same database as Active Record and are transaction aware can return false to continue enqueuing jobs as part of the transaction.