docbrown/app/views/profile_field_groups/index.json.jbuilder
2020-09-03 10:12:53 +07:00

21 lines
460 B
Ruby

json.profile_field_groups do
json.array!(@profile_field_groups) do |profile_field_group|
json.extract!(
profile_field_group,
:id,
:name,
:description,
)
json.profile_fields(profile_field_group.profile_fields) do |profile_field|
json.extract!(
profile_field,
:id,
:attribute_name,
:description,
:input_type,
:label,
:placeholder_text,
)
end
end
end