0
0
Fork 0

Move #set_user to Admin::BaseController (#9470)

* Move #set_user to Admin::BaseController

* Rename Admin::TwoFactorAuthenticationsController

from `#set_user` to `#set_target_user` .
This commit is contained in:
ysksn 2018-12-17 19:40:51 +09:00 committed by Eugen Rochko
parent 0c80715235
commit 3281df0df1
5 changed files with 6 additions and 18 deletions

View file

@ -10,11 +10,5 @@ module Admin
log_action :reset_password, @user
redirect_to admin_accounts_path
end
private
def set_user
@user = Account.find(params[:account_id]).user || raise(ActiveRecord::RecordNotFound)
end
end
end