Sha256: 78edf484b6cbf7355af0817e458c7b3862d1694450a5860d0b7557f37c328fae

Contents?: true

Size: 407 Bytes

Versions: 14

Compression:

Stored size: 407 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, :before => :load_config_initializers do |app|
      LogStasher.setup(app) if app.config.logstasher.enabled
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
logstasher-0.7.1 lib/logstasher/railtie.rb
logstasher-0.7.0 lib/logstasher/railtie.rb
logstasher-0.6.5 lib/logstasher/railtie.rb
logstasher-0.6.2 lib/logstasher/railtie.rb
logstasher-0.6.1 lib/logstasher/railtie.rb
logstasher-0.6.0 lib/logstasher/railtie.rb
logstasher-0.5.3 lib/logstasher/railtie.rb
logstasher-0.5.2 lib/logstasher/railtie.rb
logstasher-0.5.0 lib/logstasher/railtie.rb
logstasher-0.4.9 lib/logstasher/railtie.rb
logstasher-0.4.8 lib/logstasher/railtie.rb
logstasher-0.4.7 lib/logstasher/railtie.rb
logstasher-0.4.5 lib/logstasher/railtie.rb
logstasher-0.4.1 lib/logstasher/railtie.rb