lib/logstasher/railtie.rb in logstasher-0.4.0 vs lib/logstasher/railtie.rb in logstasher-0.4.1
- old
+ new
@@ -5,10 +5,10 @@
module LogStasher
class Railtie < Rails::Railtie
config.logstasher = ActiveSupport::OrderedOptions.new
config.logstasher.enabled = false
- initializer :logstasher do |app|
+ initializer :logstasher, :before => :load_config_initializers do |app|
LogStasher.setup(app) if app.config.logstasher.enabled
end
end
end