Sha256: 927365923b103d02ff0b579ad78e7add7192751718678b2b43364db9b313af5f

Contents?: true

Size: 348 Bytes

Versions: 9

Compression:

Stored size: 348 Bytes

Contents

require 'rails/railtie'
require 'action_view/log_subscriber'
require 'action_controller/log_subscriber'

module Lograge
  class Railtie < Rails::Railtie
    config.lograge = Lograge::OrderedOptions.new
    config.lograge.enabled = false

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lograge-0.11.2 lib/lograge/railtie.rb
lograge-0.11.1 lib/lograge/railtie.rb
lograge-0.11.0 lib/lograge/railtie.rb
lograge-0.10.0 lib/lograge/railtie.rb
lograge-0.9.0 lib/lograge/railtie.rb
lograge-0.8.0 lib/lograge/railtie.rb
lograge-0.7.1 lib/lograge/railtie.rb
lograge-0.7.0 lib/lograge/railtie.rb
lograge-0.6.0 lib/lograge/railtie.rb