Allow a Liquid::Drop to be passed into Template#render

This commit is contained in:
Daniel Huckstep
2013-06-06 10:17:01 -06:00
parent 85c1503378
commit b699c93bae
2 changed files with 19 additions and 0 deletions
+2
View File
@@ -93,6 +93,8 @@ module Liquid
context = case args.first
when Liquid::Context
args.shift
when Liquid::Drop
Context.new(args.shift, instance_assigns, registers, @rethrow_errors)
when Hash
Context.new([args.shift, assigns], instance_assigns, registers, @rethrow_errors, @resource_limits)
when nil