fix admin user destroy redirection

This commit is contained in:
Vladimir Krylov 2015-12-01 00:38:07 +02:00
parent a142a48711
commit 7ce525ddef

View file

@ -43,7 +43,7 @@ class Admin::AdminUsersController < AdminController
def destroy def destroy
if @admin_user.destroy if @admin_user.destroy
flash[:notice] = I18n.t('record_deleted') flash[:notice] = I18n.t('record_deleted')
redirect_to admin_users_path redirect_to admin_admin_users_path
else else
flash.now[:alert] = I18n.t('failed_to_delete_record') flash.now[:alert] = I18n.t('failed_to_delete_record')
render 'show' render 'show'