Use the same context class for isolated subcontexts for the require tag

This commit is contained in:
Dylan Thacker-Smith
2020-12-01 17:52:00 -05:00
parent 3358a892f2
commit 4ff26cd707

View File

@@ -135,7 +135,7 @@ module Liquid
def new_isolated_subcontext
check_overflow
Context.build(
self.class.build(
resource_limits: resource_limits,
static_environments: static_environments,
registers: StaticRegisters.new(registers)