diff --git a/lib/logstasher/railtie.rb b/lib/logstasher/railtie.rb index dbde2e5..1c2174c 100644 --- a/lib/logstasher/railtie.rb +++ b/lib/logstasher/railtie.rb @@ -41,7 +41,7 @@ class Railtie < Rails::Railtie end end - initializer 'logstasher.insert_middleware', after: :load_config_initializers do |app| + initializer 'logstasher.insert_middleware', after: 'web_console.acceptable_content_types' do |app| LogStasher.modify_middleware app end end