Fix warning about constants in routes (#19466)
This commit is contained in:
parent
1ce17cf316
commit
ca6e92fdb8
1 changed files with 26 additions and 26 deletions
|
@ -3,9 +3,10 @@
|
|||
require 'sidekiq_unique_jobs/web'
|
||||
require 'sidekiq-scheduler/web'
|
||||
|
||||
Rails.application.routes.draw do
|
||||
# Paths of routes on the web app that to not require to be indexed or
|
||||
# have alternative format representations requiring separate controllers
|
||||
WEB_APP_PATHS = %w(
|
||||
web_app_paths = %w(
|
||||
/getting-started
|
||||
/keyboard-shortcuts
|
||||
/home
|
||||
|
@ -28,7 +29,6 @@ WEB_APP_PATHS = %w(
|
|||
/mutes
|
||||
).freeze
|
||||
|
||||
Rails.application.routes.draw do
|
||||
root 'home#index'
|
||||
|
||||
mount LetterOpenerWeb::Engine, at: 'letter_opener' if Rails.env.development?
|
||||
|
@ -677,7 +677,7 @@ Rails.application.routes.draw do
|
|||
end
|
||||
end
|
||||
|
||||
WEB_APP_PATHS.each do |path|
|
||||
web_app_paths.each do |path|
|
||||
get path, to: 'home#index'
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue