Update nonprofits/custom_field_masters_controller.rb to Rails 6 and jbuilder
This commit is contained in:
parent
9070aee6b8
commit
b02aa85e58
2 changed files with 6 additions and 9 deletions
6
app/views/nonprofits/custom_field_masters/index.jbuilder
Normal file
6
app/views/nonprofits/custom_field_masters/index.jbuilder
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||||
|
json.data @custom_field_masters do |cfm|
|
||||||
|
json.extract! cfm, :name, :id, :created_at
|
||||||
|
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_masters => :data do
|
|
||||||
collection @custom_field_masters, object_root: false
|
|
||||||
attributes :name, :id, :created_at
|
|
||||||
end
|
|
Loading…
Reference in a new issue