Explorar el Código

Also pass custom_fields to the UserUpdater

Angus McLeod hace 6 años
padre
commit
a5a18666ad
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      lib/builder.rb

+ 1 - 2
lib/builder.rb

@@ -347,8 +347,7 @@ class CustomWizard::Builder
     end
 
     if custom_fields.present?
-      custom_fields.each { |k, v| user.custom_fields[k] = v }
-      user.save_custom_fields(true)
+      attributes[:custom_fields] = custom_fields
     end
 
     if attributes.present?