otwa-aggie/app/jobs/application_job.rb

15 lines
300 B
Ruby
Raw Normal View History

2026-08-13 04:44:25 +00:00
class ApplicationJob < ActiveJob::Base
include AfterCommitEverywhere
extend AfterCommitEverywhere
queue_as :utilities
def self.perform_after_commit(*args, **kwargs)
after_commit { perform_later(*args, **kwargs) }
end
def enqueue_after_commit
after_commit { enqueue }
end
end