diff --git a/config/routes.rb b/config/routes.rb index 468baf467e8..46ade1df6db 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -4,7 +4,6 @@ require_dependency "admin_constraint" require_dependency "staff_constraint" require_dependency "homepage_constraint" require_dependency "permalink_constraint" -require_dependency "route_format" Discourse::Application.routes.draw do diff --git a/lib/discourse.rb b/lib/discourse.rb index 18231f3d0a3..66ce5c3d76b 100644 --- a/lib/discourse.rb +++ b/lib/discourse.rb @@ -1,5 +1,6 @@ require 'cache' require 'open3' +require_dependency 'route_format' require_dependency 'plugin/instance' require_dependency 'auth/default_current_user_provider' require_dependency 'version'