use && instead of and

This commit is contained in:
Neil Lalonde 2014-09-22 12:17:15 -04:00
parent 626e896c13
commit ef436a5775
1 changed files with 1 additions and 1 deletions

View File

@ -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