From fe596639fee922ee1fda21d0fbbce379be8a2443 Mon Sep 17 00:00:00 2001 From: 20LM22 <46831359+20LM22@users.noreply.github.com> Date: Mon, 18 Nov 2024 11:45:55 -0500 Subject: [PATCH] update ruby version (#1990) Co-authored-by: Bess Sadler --- .tool-versions | 2 +- app/decorators/form_resource_decorator.rb | 2 +- app/views/works/show.html.erb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.tool-versions b/.tool-versions index e1541b5a9..bef55a73c 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,4 +1,4 @@ -ruby 3.1.0 +ruby 3.3.0 nodejs 18.17.0 yarn 1.22.19 awscli 2.7.31 diff --git a/app/decorators/form_resource_decorator.rb b/app/decorators/form_resource_decorator.rb index c6896fcee..86d31003d 100644 --- a/app/decorators/form_resource_decorator.rb +++ b/app/decorators/form_resource_decorator.rb @@ -13,7 +13,7 @@ def initialize(work, current_user) @current_user = current_user end - def funders + def funders # @funders probably null for some reason @funders ||= begin empty_row = if pppl? && resource.funders.empty? PDCMetadata::Funder.new(PPPL_FUNDER_ROR, PPPL_FUNDER_NAME, PPPL_FUNDER_AWARD_NUMBER, nil) diff --git a/app/views/works/show.html.erb b/app/views/works/show.html.erb index c03051517..cb908e6e4 100644 --- a/app/views/works/show.html.erb +++ b/app/views/works/show.html.erb @@ -263,7 +263,7 @@ <% if @work.resource.funders.count > 0 %>
Funders
- <% @work.resource.funders.each do |funder| %> + <% @work.resource.funders.each do |funder| %>
<%= funder.funder_name %>, <%= funder.award_number %>,