From 911b8647cfd70bd19a59cdded5ac68ba3d0f9255 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 29 Aug 2014 17:06:14 +1000 Subject: [PATCH] FIX: Revert permalink support until implemented correctly --- config/application.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/config/application.rb b/config/application.rb index 6ec3c0bc55f..b4c62b137b4 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