From 5ff8418f73c3676257829e44ba2146e5006cb13c Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 27 May 2020 10:41:22 -0500 Subject: [PATCH] Update custom_field_joins/index to Rails 6 and jbuilder --- app/views/nonprofits/custom_field_joins/index.jbuilder | 8 ++++++++ app/views/nonprofits/custom_field_joins/index.rabl | 9 --------- 2 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 app/views/nonprofits/custom_field_joins/index.jbuilder delete mode 100644 app/views/nonprofits/custom_field_joins/index.rabl diff --git a/app/views/nonprofits/custom_field_joins/index.jbuilder b/app/views/nonprofits/custom_field_joins/index.jbuilder new file mode 100644 index 00000000..7338c221 --- /dev/null +++ b/app/views/nonprofits/custom_field_joins/index.jbuilder @@ -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 + diff --git a/app/views/nonprofits/custom_field_joins/index.rabl b/app/views/nonprofits/custom_field_joins/index.rabl deleted file mode 100644 index 92978134..00000000 --- a/app/views/nonprofits/custom_field_joins/index.rabl +++ /dev/null @@ -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