Update nonprofits/custom_field_masters_controller.rb to Rails 6 and jbuilder

This commit is contained in:
Eric 2020-05-27 12:49:04 -05:00
parent 9070aee6b8
commit b02aa85e58
2 changed files with 6 additions and 9 deletions

View 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

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_masters => :data do
collection @custom_field_masters, object_root: false
attributes :name, :id, :created_at
end