Use `module: :users` in routes/admin section (#30767)

pull/2867/head
Matt Jankowski 2024-10-01 06:02:58 -04:00 committed by GitHub
parent 454d21ab5a
commit efd3f59627
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -144,8 +144,10 @@ namespace :admin do
end
resources :users, only: [] do
resource :two_factor_authentication, only: [:destroy], controller: 'users/two_factor_authentications'
resource :role, only: [:show, :update], controller: 'users/roles'
scope module: :users do
resource :two_factor_authentication, only: [:destroy]
resource :role, only: [:show, :update]
end
end
resources :custom_emojis, only: [:index, :new, :create] do