disabled_tags is now always avaiable

This commit is contained in:
Mike Angell
2019-09-23 22:06:31 +10:00
parent 4202976d79
commit 008c22230a
+2 -3
View File
@@ -22,10 +22,9 @@ module Liquid
end end
def render_to_output_buffer(context, output) def render_to_output_buffer(context, output)
context.registers['disabled_tags']&.disable('include') do context.registers['disabled_tags'].disable('include') do
return render_tag(context, output) render_tag(context, output)
end end
render_tag(context, output)
end end
def render_tag(context, output) def render_tag(context, output)