Upgraded Ruby to 2.7.0-preview1 and Rails to 6.0.0 - fixed 1 spec

This commit is contained in:
Al Snow
2019-09-09 15:13:29 -04:00
parent 0dcadc065f
commit 23d145129d
12 changed files with 87 additions and 59 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ class UsersController < ApplicationController
user = User.where("id = '#{params[:user][:id]}'")[0]
if user
user.update_attributes(user_params_without_password)
user.update(user_params_without_password)
if params[:user][:password].present? && (params[:user][:password] == params[:user][:password_confirmation])
user.password = params[:user][:password]
end