Browse Source

Also pass custom_fields to the UserUpdater

Angus McLeod 6 years ago
parent
commit
a5a18666ad
1 changed files with 1 additions and 2 deletions
  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?