Sha256: 2603046a05932bb91a8bd8568e99fdbda62599d1e2ecd5878fef77edb48c35c5

Contents?: true

Size: 239 Bytes

Versions: 9

Compression:

Stored size: 239 Bytes

Contents

module RailsSemanticLogger
  module DelayedJob
    class Plugin < Delayed::Plugin
      callbacks do |lifecycle|
        lifecycle.before(:execute) do |job, &block|
          ::SemanticLogger.reopen
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_semantic_logger-4.4.3 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.4.2 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.4.1 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.4.0 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.3.4 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.3.3 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.3.2 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.3.1 lib/rails_semantic_logger/delayed_job/plugin.rb
rails_semantic_logger-4.3.0 lib/rails_semantic_logger/delayed_job/plugin.rb