mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: Revert permalink support until implemented correctly
This commit is contained in:
parent
2c7d694c34
commit
911b8647cf
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue