Module: RenderDebug::PreRenderCallout

Extended by:
ActiveSupport::Concern
Defined in:
lib/render_debug/pre_render_callout.rb

Instance Method Summary collapse

Instance Method Details

#render_with_callout(context, options, block) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/render_debug/pre_render_callout.rb', line 8

def render_with_callout(context, options, block)
  initial_render = render_without_callout(context, options, block)
  if(@path)
    "<!-- TEMPLATE : #{@path} -->#{initial_render}<!-- END TEMPLATE #{@path}-->".html_safe
  else
    "<!-- TEMPLATE : ??? -->#{initial_render}<!-- END TEMPLATE ???-->".html_safe
  end
end