add permalinks route constraint

This commit is contained in:
Neil Lalonde
2014-08-29 11:28:16 -04:00
parent e823f568a7
commit 6b41c6b335
5 changed files with 11 additions and 21 deletions

View File

@@ -148,14 +148,6 @@ module Discourse
require 'auth'
Discourse.activate_plugins! unless Rails.env.test? and ENV['LOAD_PLUGINS'] != "1"
# 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
OpenID::Util.logger = Rails.logger