Commit 21b31a675dd314f987276e64c7c5f7aa9b30f4fb
Exists in
master
and in
4 other branches
Merge pull request #280 from vesln/password-present
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 | ... | ... |