FIX: Revert permalink support until implemented correctly

This commit is contained in:
Sam 2014-08-29 17:06:14 +10:00
parent 2c7d694c34
commit 911b8647cf

View file

@ -148,9 +148,13 @@ module Discourse
require 'auth' require 'auth'
Discourse.activate_plugins! unless Rails.env.test? and ENV['LOAD_PLUGINS'] != "1" Discourse.activate_plugins! unless Rails.env.test? and ENV['LOAD_PLUGINS'] != "1"
initializer :add_last_routes, :after => :add_routing_paths do |app| # FIXME: needs to work with engines such as docker manager
app.routes_reloader.paths << File.join(Rails.root, 'config', 'routes_last.rb') # this mounts routes_last before the engine, one option here if a hook is to hard
end # 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 config.after_initialize do
# So open id logs somewhere sane # So open id logs somewhere sane