Explorar o código

Also pass custom_fields to the UserUpdater

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