Add batch actions for approving and rejecting pending accounts (#10469)

This commit is contained in:
Eugen Rochko
2019-04-06 17:53:45 +02:00
committed by GitHub
parent 2c63e0292a
commit e1d0390e29
8 changed files with 130 additions and 3 deletions

View File

@ -214,6 +214,13 @@ Rails.application.routes.draw do
end
end
resources :pending_accounts, only: [:index, :update] do
collection do
post :approve_all
post :reject_all
end
end
resources :users, only: [] do
resource :two_factor_authentication, only: [:destroy]
end