rails/activesupport/lib
Jean Boussier afa019835b Fix ActiveJob::EnqueueAfterTransactionCommit API
Fix: https://github.com/rails/rails/pull/51426#issuecomment-2042611790

`perform_later` is supposed to return the Job instance on success,
and `false` on error.

When the `enqueue` is automatically delayed, it's of course impossible
to predict if the actual queueing will succeed, but for backward compatibility
reasons, it's best to assume it will.

If necessary, you can hold onto the job instance and check for
`#successfully_enqueued?` after the transaction has completed.
2024-04-10 09:20:12 +02:00
..
active_support Fix ActiveJob::EnqueueAfterTransactionCommit API 2024-04-10 09:20:12 +02:00
active_support.rb Refactor Module#delegate inside ActiveSupport::Delegation 2024-01-25 11:51:00 +01:00