Skip to content

Commit

Permalink
use && instead of and
Browse files Browse the repository at this point in the history
  • Loading branch information
nlalonde committed Sep 22, 2014
1 parent 626e896 commit ef436a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/user_updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def update(attributes = {})
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

Expand Down

0 comments on commit ef436a5

Please sign in to comment.