Remove unneeded code

This commit is contained in:
Artur Beljajev 2019-12-10 15:21:57 +02:00
parent 54be3995e6
commit e6981e7e28

View file

@ -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?