Explorar o código

Profile updater bugfix

Angus McLeod %!s(int64=7) %!d(string=hai) anos
pai
achega
37cd08a3de
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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