Update custom_field_joins/index to Rails 6 and jbuilder

This commit is contained in:
Eric 2020-05-27 10:41:22 -05:00
parent 2854603d56
commit 5ff8418f73
2 changed files with 8 additions and 9 deletions

View file

@ -0,0 +1,8 @@
# frozen_string_literal: true
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
json.data @custom_field_joins do |cfj|
json.extract! cfj, :name, :created_at, :id, :value
end

View file

@ -1,9 +0,0 @@
# frozen_string_literal: true
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
object false
child @custom_field_joins => :data do
collection @custom_field_joins, object_root: false
attributes :name, :created_at, :id, :value
end