about summary refs log tree commit diff
path: root/app/controllers/admin/confirmations_controller.rb
diff options
context:
space:
mode:
authorysksn <bluewhale1982@gmail.com>2018-12-17 19:40:51 +0900
committerEugen Rochko <eugen@zeonfederated.com>2018-12-17 11:40:51 +0100
commit3281df0df1eb83e77d5c3028537be2669eebd69c (patch)
tree39b0282514b35cac3447177ce33aa4c3b6a9ed33 /app/controllers/admin/confirmations_controller.rb
parent0c8071523592fc4ce73aa5c39822ca5d7f5f71d7 (diff)
Move #set_user to Admin::BaseController (#9470)
* Move #set_user to Admin::BaseController

* Rename Admin::TwoFactorAuthenticationsController

from `#set_user` to `#set_target_user` .
Diffstat (limited to 'app/controllers/admin/confirmations_controller.rb')
-rw-r--r--app/controllers/admin/confirmations_controller.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/controllers/admin/confirmations_controller.rb b/app/controllers/admin/confirmations_controller.rb
index 8d3477e66..efe7dcbd4 100644
--- a/app/controllers/admin/confirmations_controller.rb
+++ b/app/controllers/admin/confirmations_controller.rb
@@ -25,10 +25,6 @@ module Admin
 
     private
 
-    def set_user
-      @user = Account.find(params[:account_id]).user || raise(ActiveRecord::RecordNotFound)
-    end
-
     def check_confirmation
       if @user.confirmed?
         flash[:error] = I18n.t('admin.accounts.resend_confirmation.already_confirmed')