diff --git a/app/helpers/accessibility_helper.rb b/app/helpers/accessibility_helper.rb index c760fe3784..e2fbcf5538 100644 --- a/app/helpers/accessibility_helper.rb +++ b/app/helpers/accessibility_helper.rb @@ -34,11 +34,6 @@ module AccessibilityHelper end def empty_element_tag - return @empty_element_tag if defined? @empty_element_tag - - @empty_element_tag = ApplicationController.new.render_to_string(partial: "accessibility/empty_element_tag").html_safe - - @empty_element_tag + @empty_element_tag ||= ApplicationController.new.render_to_string(partial: "accessibility/empty_element_tag").html_safe end - end