Skip to content

Commit

Permalink
Display resource title on embargo form
Browse files Browse the repository at this point in the history
  • Loading branch information
dlpierce authored Nov 8, 2024
1 parent 4807044 commit c131b24
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/forms/hyrax/forms/work_embargo_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ def human_readable_type
def model_name
model.to_model.model_name
end

##
# @return [String]
def to_s
[*model.title].join(' ')
end
end
end
end

0 comments on commit c131b24

Please sign in to comment.