From a2ada48089b36f392445d6ff414191282144d657 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 25 Mar 2013 18:08:23 -0700 Subject: [PATCH] it appears routes can be reloaded in dev under certain conditions --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 813e66c906c..5de23056d8c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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