mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-23 22:12:30 -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'
|
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
|
||||||
|
|
Loading…
Reference in a new issue