Explorar el Código

Profile updater bugfix

Angus McLeod hace 7 años
padre
commit
37cd08a3de
Se han modificado 1 ficheros con 1 adiciones y 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