Sha256: 1795296cbf8d7473e234dd4dba3a939bcec19df580fc36b3c5383b2a02c462eb

Contents?: true

Size: 369 Bytes

Versions: 8

Compression:

Stored size: 369 Bytes

Contents

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

module LogStasher
  class Railtie < Rails::Railtie
    config.logstasher = ActiveSupport::OrderedOptions.new
    config.logstasher.enabled = false

    initializer :logstasher do |app|
      LogStasher.setup(app) if app.config.logstasher.enabled
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
logstasher-0.4.0 lib/logstasher/railtie.rb
logstasher-0.3.1 lib/logstasher/railtie.rb
logstasher-0.3.0 lib/logstasher/railtie.rb
logstasher-0.2.8 lib/logstasher/railtie.rb
logstasher-0.2.5 lib/logstasher/railtie.rb
logstasher-0.2.4 lib/logstasher/railtie.rb
logstasher-0.2.2 lib/logstasher/railtie.rb
logstasher-0.2.0 lib/logstasher/railtie.rb