From 0378dca66f3b491ad9e1907e2b9f0a562fed0e07 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 7 Oct 2014 16:11:19 +1100 Subject: [PATCH] FIX: dismissed banner topic returned after saving user profile --- app/services/user_updater.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/services/user_updater.rb b/app/services/user_updater.rb index 4afc58047e8..74a785c4b96 100644 --- a/app/services/user_updater.rb +++ b/app/services/user_updater.rb @@ -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?