Skip to content

Commit

Permalink
disable rubocop for the new uses of instance variables in helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
CEdwardsBlasikiewicz committed Nov 25, 2024
1 parent 1522e25 commit 4006687
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/helpers/blacklight/layout_helper_behavior.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ def opensearch_description_tag title, href
# Get the page's HTML title
#
# @return [String]
# rubocop:disable Rails/HelperInstanceVariable
def render_page_title
(content_for(:page_title) if content_for?(:page_title)) || @page_title || application_name
end
# rubocop:enable Rails/HelperInstanceVariable

##
# Create <link rel="alternate"> links from a documents dynamically
Expand All @@ -86,11 +88,13 @@ def render_page_title
# content type, e.g. as required by atom
# @option options [Array<String>] :exclude array of format shortnames to not include in the output
# @return [String]
# rubocop:disable Rails/HelperInstanceVariable
def render_link_rel_alternates(document = @document, options = {})
return if document.nil?

document_presenter(document).link_rel_alternates(options)
end
# rubocop:enable Rails/HelperInstanceVariable

##
# Render classes for the <body> element
Expand Down

0 comments on commit 4006687

Please sign in to comment.