File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 = link_to admin_imap_sync_states_path, class : admin_nav_link_class(:imap_sync ) do
1919 i .fas .fa-sync
2020 span IMAP Sync
21+ = link_to admin_pg_hero.root_path, class : admin_nav_link_class(:pghero ) do
22+ i .fas .fa-database
23+ span PgHero
2124
2225= render template: ' layouts/application'
Original file line number Diff line number Diff line change 1717 post :preview
1818 end
1919 end
20+ mount PgHero ::Engine , at : "/pghero" if defined? ( PgHero )
2021 end
2122 # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
2223
115116 post "messages/:id/read" , to : "messages#read" , as : :read_message
116117 resources :attachments , only : [ :show ]
117118
118- if defined? ( PgHero )
119- constraints AdminConstraint . new do
120- mount PgHero ::Engine , at : "/pghero"
121- end
122- end
123-
124119 if Rails . env . development?
125120 mount LetterOpenerWeb ::Engine , at : "/letter_opener"
126121 end
You can’t perform that action at this time.
0 commit comments