it appears routes can be reloaded in dev under certain conditions

This commit is contained in:
Sam 2013-03-25 18:08:23 -07:00
parent c57ec611e1
commit a2ada48089

View File

@ -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