diff --git a/app/presenters/hyrax/file_set_presenter_decorator.rb b/app/presenters/hyrax/file_set_presenter_decorator.rb index 48dcf314..7ed02ba5 100644 --- a/app/presenters/hyrax/file_set_presenter_decorator.rb +++ b/app/presenters/hyrax/file_set_presenter_decorator.rb @@ -3,11 +3,11 @@ # OVERRIDE Hyrax v3.5.0 to change what appears in the title tags for pages module Hyrax - module FileSetPresenterDecorator - def page_title - "#{title.first} | #{I18n.t('hyrax.product_name')} | ID: #{id}" - end - end + module FileSetPresenterDecorator + def page_title + "#{title.first} | #{I18n.t('hyrax.product_name')} | ID: #{id}" + end + end end Hyrax::FileSetPresenter.prepend(Hyrax::FileSetPresenterDecorator) diff --git a/app/presenters/hyrax/work_show_presenter_decorator.rb b/app/presenters/hyrax/work_show_presenter_decorator.rb index 649b4c8b..52aa8407 100644 --- a/app/presenters/hyrax/work_show_presenter_decorator.rb +++ b/app/presenters/hyrax/work_show_presenter_decorator.rb @@ -1,12 +1,14 @@ +# frozen_string_literal: true + # OVERRIDE Hyrax v3.5.0 to change what appears in the title tags for pages module Hyrax - module WorkShowPresenterDecorator - def page_title - "#{title.first} | #{I18n.t('hyrax.product_name')} | ID: #{id}" - end - end + module WorkShowPresenterDecorator + def page_title + "#{title.first} | #{I18n.t('hyrax.product_name')} | ID: #{id}" + end + end end Hyrax::WorkShowPresenter.prepend(Hyrax::WorkShowPresenterDecorator)