class ActionView::PartialRenderer
inject partial name
Public Instance Methods
render_with_source_comment(context, options, block)
click to toggle source
# File lib/iqvoc/environments/development.rb, line 20 def render_with_source_comment(context, options, block) res = render_without_source_comment(context, options, block) template = @template if template.formats.include?(:html) "<!-- Partial: #{template.inspect} -->\n".html_safe << res << "<!-- /Partial -->\n".html_safe else res end end