Commit 22e7f8ffccb91b9d6565f02dfe8c9ef8e6447b3a
1 parent
3c9d7b70
Exists in
master
and in
4 other branches
Fixing an issue in users#update when password is not present.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/admin/users_controller.rb
... | ... | @@ -38,7 +38,7 @@ class Admin::UsersController < ApplicationController |
38 | 38 | |
39 | 39 | def update |
40 | 40 | admin = params[:user].delete("admin") |
41 | - if params[:user][:password].empty? | |
41 | + if params[:user][:password].blank? | |
42 | 42 | params[:user].delete(:password) |
43 | 43 | params[:user].delete(:password_confirmation) |
44 | 44 | end | ... | ... |