mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 13:15:40 +02:00
Fix Rubocop warnings
This commit is contained in:
parent
02aad0d781
commit
a651ac8cab
13 changed files with 26 additions and 20 deletions
|
@ -32,7 +32,10 @@ module Admin
|
|||
end
|
||||
|
||||
def update
|
||||
params[:api_user].delete(:plain_text_password) if params[:api_user][:plain_text_password].blank?
|
||||
if params[:api_user][:plain_text_password].blank?
|
||||
params[:api_user].delete(:plain_text_password)
|
||||
end
|
||||
|
||||
if @api_user.update(api_user_params)
|
||||
flash[:notice] = I18n.t('record_updated')
|
||||
redirect_to [:admin, @api_user]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue