lib/stache/handlebars/handler.rb in stache-1.0.2 vs lib/stache/handlebars/handler.rb in stache-1.0.3

- old
+ new

@@ -34,10 +34,10 @@ content_for(:layout) end template = handlebars.compile('#{template.source.gsub(/'/, "\\\\'")}'); vars = {} - partial_renderer = @view_renderer.send(:_partial_renderer) + partial_renderer = PartialRenderer.new(lookup_context) vars.merge!(@_assigns) vars.merge!(partial_renderer.instance_variable_get('@locals') || {}) options = partial_renderer.instance_variable_get('@options') vars.merge!(options[:context] || {}) if options \ No newline at end of file