diff --git a/app/forms/hyrax/forms/work_embargo_form.rb b/app/forms/hyrax/forms/work_embargo_form.rb index 4a86f11a0b..0dbda2bd55 100644 --- a/app/forms/hyrax/forms/work_embargo_form.rb +++ b/app/forms/hyrax/forms/work_embargo_form.rb @@ -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 diff --git a/app/forms/hyrax/forms/work_lease_form.rb b/app/forms/hyrax/forms/work_lease_form.rb index 469ac65cb9..1659d3e620 100644 --- a/app/forms/hyrax/forms/work_lease_form.rb +++ b/app/forms/hyrax/forms/work_lease_form.rb @@ -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 diff --git a/app/views/hyrax/embargoes/_list_expired_active_embargoes.html.erb b/app/views/hyrax/embargoes/_list_expired_active_embargoes.html.erb index 37889239e8..be2410c13b 100644 --- a/app/views/hyrax/embargoes/_list_expired_active_embargoes.html.erb +++ b/app/views/hyrax/embargoes/_list_expired_active_embargoes.html.erb @@ -35,15 +35,15 @@