From a5a18666ada36153cd7a3528f144dd579dda0b03 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Fri, 25 May 2018 10:43:46 +1000 Subject: [PATCH] Also pass custom_fields to the UserUpdater --- lib/builder.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/builder.rb b/lib/builder.rb index 7e537dab..8cc04a0e 100644 --- a/lib/builder.rb +++ b/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?