We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 688a8e3 commit 0ede7d5Copy full SHA for 0ede7d5
config/routes.rb
@@ -1,6 +1,8 @@
1
Osem::Application.routes.draw do
2
- mount LetterOpenerWeb::Engine, at: '/letter_opener' if Rails.env.development?
3
-
+ if Rails.env.development? && defined?(LetterOpenerWeb)
+ mount LetterOpenerWeb::Engine, at: '/letter_opener'
4
+ end
5
+
6
constraints DomainConstraint do
7
get '/', to: 'conferences#show'
8
end
0 commit comments