From 008c22230a2657fb384bad751d5e31cd3e07cfe7 Mon Sep 17 00:00:00 2001 From: Mike Angell Date: Mon, 23 Sep 2019 22:06:31 +1000 Subject: [PATCH] disabled_tags is now always avaiable --- lib/liquid/tags/render.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/liquid/tags/render.rb b/lib/liquid/tags/render.rb index 20eacbe..8b8511c 100644 --- a/lib/liquid/tags/render.rb +++ b/lib/liquid/tags/render.rb @@ -22,10 +22,9 @@ module Liquid end def render_to_output_buffer(context, output) - context.registers['disabled_tags']&.disable('include') do - return render_tag(context, output) + context.registers['disabled_tags'].disable('include') do + render_tag(context, output) end - render_tag(context, output) end def render_tag(context, output)