mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
fix admin user destroy redirection
This commit is contained in:
parent
a142a48711
commit
7ce525ddef
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class Admin::AdminUsersController < AdminController
|
|||
def destroy
|
||||
if @admin_user.destroy
|
||||
flash[:notice] = I18n.t('record_deleted')
|
||||
redirect_to admin_users_path
|
||||
redirect_to admin_admin_users_path
|
||||
else
|
||||
flash.now[:alert] = I18n.t('failed_to_delete_record')
|
||||
render 'show'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue