module ContentTagHelper
Public Instance Methods
content_tag(*args) { |tag| ... }
click to toggle source
Calls superclass method
# File lib/ecrire/app/helpers/content_tag_helper.rb, line 2 def content_tag(*args, &block) if block_given? tag = Tag.new(*args) old_buf = @output_buffer @output_buffer = ActionView::OutputBuffer.new value = yield(tag) content = tag.render(@output_buffer.presence || value) @output_buffer = old_buf content else super end end