From 0fac50aea77ffb806e9c82edc7c2bb9142c0f92f Mon Sep 17 00:00:00 2001 From: Dylan Thacker-Smith Date: Thu, 27 Feb 2014 21:38:49 -0500 Subject: [PATCH] Use super rather than render_all in single block render classes. --- lib/liquid/tags/ifchanged.rb | 2 +- lib/liquid/tags/table_row.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/liquid/tags/ifchanged.rb b/lib/liquid/tags/ifchanged.rb index 03a9fb0..86dbe72 100644 --- a/lib/liquid/tags/ifchanged.rb +++ b/lib/liquid/tags/ifchanged.rb @@ -4,7 +4,7 @@ module Liquid def render(context) context.stack do - output = render_all(@nodelist, context) + output = super if output != context.registers[:ifchanged] context.registers[:ifchanged] = output diff --git a/lib/liquid/tags/table_row.rb b/lib/liquid/tags/table_row.rb index 25457a3..dde7f32 100644 --- a/lib/liquid/tags/table_row.rb +++ b/lib/liquid/tags/table_row.rb @@ -54,7 +54,7 @@ module Liquid col += 1 - result << "" << render_all(@nodelist, context) << '' + result << "" << super << '' if col == cols and (index != length - 1) col = 0