浏览代码

Profile updater bugfix

Angus McLeod 7 年之前
父节点
当前提交
37cd08a3de
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/builder.rb

+ 1 - 1
lib/builder.rb

@@ -219,7 +219,7 @@ class CustomWizard::Builder
                   user_updater = UserUpdater.new(user, user)
                   attributes = {}
                   a['profile_updates'].each do |pu|
-                    attributes[pu['key'].to_sym] = data[pu['value']]
+                    attributes[pu['value'].to_sym] = data[pu['key']]
                   end
                   user_updater.update(attributes) if attributes.present?
                 end