diff --git a/config/application.rb b/config/application.rb index 6ec3c0bc5..b4c62b137 100644 --- a/config/application.rb +++ b/config/application.rb @@ -148,9 +148,13 @@ module Discourse require 'auth' Discourse.activate_plugins! unless Rails.env.test? and ENV['LOAD_PLUGINS'] != "1" - initializer :add_last_routes, :after => :add_routing_paths do |app| - app.routes_reloader.paths << File.join(Rails.root, 'config', 'routes_last.rb') - end + # FIXME: needs to work with engines such as docker manager + # this mounts routes_last before the engine, one option here if a hook is to hard + # is to add a constraint on the route that ensures its only captured if its a permalink + # + # initializer :add_last_routes, :after => :add_routing_paths do |app| + # app.routes_reloader.paths << File.join(Rails.root, 'config', 'routes_last.rb') + # end config.after_initialize do # So open id logs somewhere sane