From 400668748bba9e2f5abd1b89e0116d40cdc30834 Mon Sep 17 00:00:00 2001 From: CEdwardsBlasikiewicz Date: Mon, 25 Nov 2024 15:51:26 +1100 Subject: [PATCH] disable rubocop for the new uses of instance variables in helpers --- app/helpers/blacklight/layout_helper_behavior.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/helpers/blacklight/layout_helper_behavior.rb b/app/helpers/blacklight/layout_helper_behavior.rb index df98590..3b3c96a 100644 --- a/app/helpers/blacklight/layout_helper_behavior.rb +++ b/app/helpers/blacklight/layout_helper_behavior.rb @@ -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 links from a documents dynamically @@ -86,11 +88,13 @@ def render_page_title # content type, e.g. as required by atom # @option options [Array] :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 element