lib/logstasher/railtie.rb in logstasher-0.1.1 vs lib/logstasher/railtie.rb in logstasher-0.2.0

- old
+ new

@@ -1,14 +1,14 @@ require 'rails/railtie' require 'action_view/log_subscriber' require 'action_controller/log_subscriber' -module Logstasher +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 + LogStasher.setup(app) if app.config.logstasher.enabled end end end