Skip to content

Commit 98af9b0

Browse files
committed
feat(routes config): RailsAdmin mounting inside authentication block with admin(god) conditionnal access
1 parent 30a177c commit 98af9b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
# letter_thief : emails sortants interceptés (remplace Mailtrap en review).
3737
# Réservé aux comptes god car ils contiennent des données personnelles.
3838
mount LetterThief::Engine => "/letter_thief" if Rails.env.review?
39+
mount RailsAdmin::Engine => "/admin", as: "rails_admin"
3940
end
4041

41-
mount RailsAdmin::Engine => "/admin", as: "rails_admin"
4242
mount ActionCable.server => "/cable"
4343

4444
devise_for :users, path: "utilisateurs", path_names: {

0 commit comments

Comments
 (0)