mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 10:50:26 -06:00
it appears routes can be reloaded in dev under certain conditions
This commit is contained in:
parent
c57ec611e1
commit
a2ada48089
@ -4,7 +4,7 @@ require_dependency 'admin_constraint'
|
||||
|
||||
# This used to be User#username_format, but that causes a preload of the User object
|
||||
# and makes Guard not work properly.
|
||||
USERNAME_ROUTE_FORMAT = /[A-Za-z0-9\_]+/
|
||||
USERNAME_ROUTE_FORMAT = /[A-Za-z0-9\_]+/ unless defined? USERNAME_ROUTE_FORMAT
|
||||
|
||||
Discourse::Application.routes.draw do
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user