otwarchive-symphonyarchive/app/jobs/application_job.rb

15 lines
300 B
Ruby
Raw Permalink Normal View History

2026-03-11 22:22:11 +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