Skip to content

Commit

Permalink
update ruby version (#1990)
Browse files Browse the repository at this point in the history
Co-authored-by: Bess Sadler <[email protected]>
  • Loading branch information
20LM22 and bess authored Nov 18, 2024
1 parent db80097 commit fe59663
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ruby 3.1.0
ruby 3.3.0
nodejs 18.17.0
yarn 1.22.19
awscli 2.7.31
2 changes: 1 addition & 1 deletion app/decorators/form_resource_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion app/views/works/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@

<% if @work.resource.funders.count > 0 %>
<dt>Funders</dt>
<% @work.resource.funders.each do |funder| %>
<% @work.resource.funders.each do |funder| %>
<dd>
<%= funder.funder_name %>,
<%= funder.award_number %>,
Expand Down

0 comments on commit fe59663

Please sign in to comment.