Преглед на файлове

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?