Sha256: 464a638d66ad7e2ff48d8653e423f9251d82430cd9ce24721a1b941774c2f1ef
Contents?: true
Size: 650 Bytes
Versions: 11
Compression:
Stored size: 650 Bytes
Contents
module GoodJob # Ruby on Rails integration. class Railtie < ::Rails::Railtie initializer "good_job.logger" do ActiveSupport.on_load(:good_job) { self.logger = ::Rails.logger } GoodJob::LogSubscriber.attach_to :good_job end initializer "good_job.active_job_notifications" do ActiveSupport::Notifications.subscribe "enqueue_retry.active_job" do |event| GoodJob::CurrentExecution.error_on_retry = event.payload[:error] end ActiveSupport::Notifications.subscribe "discard.active_job" do |event| GoodJob::CurrentExecution.error_on_discard = event.payload[:error] end end end end
Version data entries
11 entries across 11 versions & 1 rubygems