Use `module: :users` in routes/admin section (#30767)
parent
66ef4b9984
commit
4ad1e955eb
|
@ -144,8 +144,10 @@ namespace :admin do
|
||||||
end
|
end
|
||||||
|
|
||||||
resources :users, only: [] do
|
resources :users, only: [] do
|
||||||
resource :two_factor_authentication, only: [:destroy], controller: 'users/two_factor_authentications'
|
scope module: :users do
|
||||||
resource :role, only: [:show, :update], controller: 'users/roles'
|
resource :two_factor_authentication, only: [:destroy]
|
||||||
|
resource :role, only: [:show, :update]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
resources :custom_emojis, only: [:index, :new, :create] do
|
resources :custom_emojis, only: [:index, :new, :create] do
|
||||||
|
|
Loading…
Reference in New Issue