Fix for custom tag rendering

This commit is contained in:
Ieva Grazuleviciute
2023-10-20 11:42:54 +03:00
parent e3dcc75ab5
commit 407a8e5b0f
2 changed files with 11 additions and 1 deletions
+2 -1
View File
@@ -54,7 +54,8 @@ module Liquid
# of the `render_to_output_buffer` method will become the default and the `render`
# method will be removed.
def render_to_output_buffer(context, output)
output << render(context)
render_result = render(context)
output << render_result if render_result
output
end