use && instead of and
This commit is contained in:
parent
626e896c13
commit
ef436a5775
|
@ -66,7 +66,7 @@ class UserUpdater
|
|||
user_profile.send("#{attribute}=", attributes[attribute])
|
||||
end
|
||||
|
||||
if fields = attributes[:custom_fields] and fields.present?
|
||||
if fields = attributes[:custom_fields] && fields.present?
|
||||
user.custom_fields = fields
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue