Sha256: 9a54a97cd720156e16f2cbb6eb3cce2a43fb147396b5b8c6ad16051b6c626c7e

Contents?: true

Size: 284 Bytes

Versions: 3

Compression:

Stored size: 284 Bytes

Contents

require 'rails/railtie'

module LogrageActivejob
  Config = Struct.new(:custom_options)

  class Railtie < Rails::Railtie
    config.lograge_activejob = Config.new

    config.after_initialize do |app|
      LogrageActivejob.setup(app) if app.config.lograge.enabled
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lograge_activejob-0.3.0 lib/lograge_activejob/railtie.rb
lograge_activejob-0.2.0 lib/lograge_activejob/railtie.rb
lograge_activejob-0.1.0 lib/lograge_activejob/railtie.rb