Update custom_field_joins/index to Rails 6 and jbuilder
This commit is contained in:
parent
2854603d56
commit
5ff8418f73
2 changed files with 8 additions and 9 deletions
8
app/views/nonprofits/custom_field_joins/index.jbuilder
Normal file
8
app/views/nonprofits/custom_field_joins/index.jbuilder
Normal 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
|
||||
|
|
@ -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
|
Loading…
Reference in a new issue