From 15641f03df2f6bfb7c24c6564c5b2949fe35815c Mon Sep 17 00:00:00 2001 From: Benjamin Kiah Stroud <32469930+bkiahstroud@users.noreply.github.com> Date: Tue, 24 Dec 2024 10:36:02 -0800 Subject: [PATCH] include ContributionResources on Asset edit form They will now render alongside Contributions under the Credits section --- app/forms/asset_resource_form.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/forms/asset_resource_form.rb b/app/forms/asset_resource_form.rb index e2da41dd..ca08d802 100644 --- a/app/forms/asset_resource_form.rb +++ b/app/forms/asset_resource_form.rb @@ -88,7 +88,7 @@ def field_group_terms(group) def child_contributors child_contributions = [] model.members.to_a.each do |member| - if( member.class == Contribution ) + if [Contribution, ContributionResource].include?(member.class) child_contributions << [member.id, member.contributor_role, member.contributor.first , member.portrayal, member.affiliation] end end