Skip to content

Commit a2ada48

Browse files
committed
it appears routes can be reloaded in dev under certain conditions
1 parent c57ec61 commit a2ada48

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# This used to be User#username_format, but that causes a preload of the User object
66
# and makes Guard not work properly.
7-
USERNAME_ROUTE_FORMAT = /[A-Za-z0-9\_]+/
7+
USERNAME_ROUTE_FORMAT = /[A-Za-z0-9\_]+/ unless defined? USERNAME_ROUTE_FORMAT
88

99
Discourse::Application.routes.draw do
1010

0 commit comments

Comments
 (0)