Replace count.zero? with empty?
This commit is contained in:
parent
c50e4f50c4
commit
dcf3416669
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ class AccountsController < ApplicationController
|
|||
(params[:user][:auth_provider] == current_user.auth_provider &&
|
||||
params[:user][:auth_uid] == current_user.auth_uid)
|
||||
update_user(current_user, user_params)
|
||||
if current_user.errors.count.zero?
|
||||
if current_user.errors.empty?
|
||||
redirect_to edit_account_path
|
||||
else
|
||||
render :edit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue