FIX: dismissed banner topic returned after saving user profile

This commit is contained in:
Sam 2014-10-07 16:11:19 +11:00
parent 836bc0f935
commit 0378dca66f
1 changed files with 2 additions and 3 deletions

View File

@ -62,9 +62,8 @@ class UserUpdater
end
end
PROFILE_ATTR.each do |attribute|
user_profile.send("#{attribute}=", attributes[attribute])
end
user_profile.location = attributes[:location]
user_profile.dismissed_banner_key = attributes[:dismissed_banner_key] if attributes[:dismissed_banner_key].present?
fields = attributes[:custom_fields]
if fields.present?