ソースを参照

Also pass custom_fields to the UserUpdater

Angus McLeod 6 年 前
コミット
a5a18666ad
1 ファイル変更1 行追加2 行削除
  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?