From e6981e7e280ed61b62dd54813b132db8099e9aa4 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Tue, 10 Dec 2019 15:21:57 +0200 Subject: [PATCH] Remove unneeded code --- app/controllers/admin/api_users_controller.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/controllers/admin/api_users_controller.rb b/app/controllers/admin/api_users_controller.rb index f47a4b652..8876c726f 100644 --- a/app/controllers/admin/api_users_controller.rb +++ b/app/controllers/admin/api_users_controller.rb @@ -30,10 +30,6 @@ module Admin end def update - if params[:api_user][:plain_text_password].blank? - params[:api_user].delete(:plain_text_password) - end - @api_user.attributes = api_user_params if @api_user.valid?