Commit 21b31a67 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #280 from vesln/password-present

Fixing an issue in users#update when password is not present.
parents bed882e6 22e7f8ff
......@@ -38,7 +38,7 @@ class Admin::UsersController < ApplicationController
def update
admin = params[:user].delete("admin")
if params[:user][:password].empty?
if params[:user][:password].blank?
params[:user].delete(:password)
params[:user].delete(:password_confirmation)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment