I've done a bit of tracing on this and tracked the problem down the following code in dryml/template_handler.rb
class ActionView::Template
def render_with_dryml(view, local_assigns = {})
if handler == Dryml::TemplateHandler
render_dryml(view, local_assigns)
else
render_without_dryml(view, local_assigns)
end
end
alias_method_chain :render, :dryml
The
weird thing is that handler == Dryml::TemplateHandler evaluates as true
on the first render, but evaluates to false on all subsequent renders -
even though, according to the debugger, the handler method returns
Dryml::TemplateHandler each time.
Even more confusing is that the debugger reckons that the expression evaluates to false on the second render.
The
only difference I can see is that as handler is memoized, the first
call calls the method whereas the second call returns the cached
result. However, the debugger says that the memoized value of handler
is a class of Dryml::TemplateHandler
--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/hobousers/-/wnTDl322bLAJ.