Skip to content

Commit a43a904

Browse files
committed
Update signup api
1 parent f9cb880 commit a43a904

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/controllers/api/v8/users_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ def set_extra_data
142142
return if extra_fields.nil?
143143
namespace = extra_fields['namespace']
144144
raise "Namespace not defined" unless namespace
145-
extra_fields['data'].each do |record|
146-
@user.user_app_data.new(namespace: namespace, field_name: record['field_name'], value: record[:value])
145+
extra_fields['data'].each do |key, value|
146+
@user.user_app_data.new(namespace: namespace, field_name: key, value: value)
147147
end
148148
end
149149
end

0 commit comments

Comments
 (0)