REFACTOR: Remove Discourse.Route in lieu of importing

This commit is contained in:
Robin Ward
2019-11-08 15:18:13 -05:00
parent c0e105fc8c
commit 920f8c6d75
5 changed files with 18 additions and 8 deletions

View File

@ -86,7 +86,6 @@ JS
@@whitelisted ||= Set.new(
[
"discourse/routes/discourse",
"discourse/models/site",
"discourse/models/user",
]
@ -151,11 +150,6 @@ JS
if require_name !~ /\-test$/ && require_name !~ /^discourse\/plugins\//
result = "#{class_name}#{type.classify}"
# HAX
result = "Controller" if result == "ControllerController"
result = "Route" if result == "DiscourseRoute"
result = "View" if result == "ViewView"
result = result.gsub(/Mixin$/, '')
result = result.gsub(/Model$/, '')