Sha256: bc5aeb1d146f623ce848ab32c2dca2dfa56befd9564a3f8b0d04a0643a28f9af

Contents?: true

Size: 345 Bytes

Versions: 3

Compression:

Stored size: 345 Bytes

Contents

# frozen_string_literal: true

require 'active_job/logging'

ActiveSupport::Notifications.unsubscribe('enqueue.active_job')

module ActiveJob
  module Logging
    class EnqueueLogSubscriber < LogSubscriber
      define_method :enqueue, instance_method(:enqueue)
    end
  end
end

ActiveJob::Logging::EnqueueLogSubscriber.attach_to(:active_job)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
underlay-2.0 templates/active_job.rb
underlay-1.52.1 templates/active_job.rb
underlay-1.50.1 templates/active_job.rb