Skip to content

Commit

Permalink
ran rubocop and auto corrected errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Christy Karpinski authored and Christy Karpinski committed Jul 6, 2023
1 parent ccb37f5 commit 7eb1b6a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
10 changes: 5 additions & 5 deletions app/presenters/hyrax/file_set_presenter_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
12 changes: 7 additions & 5 deletions app/presenters/hyrax/work_show_presenter_decorator.rb
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 7eb1b6a

Please sign in to comment.