Shorten memoization in accessibility helper

pull/802/head
Till Breuer 11 years ago
parent 96c8b07f6b
commit 4d49009079
  1. 7
      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

Loading…
Cancel
Save