avoid a hash comparison

This commit is contained in:
Tom Burns
2014-07-30 15:12:22 +00:00
parent e53d102a2c
commit 15f6cabf83
+2 -2
View File
@@ -135,9 +135,9 @@ module Liquid
# end
#
# context['var] #=> nil
def stack(new_scope={})
def stack(new_scope=nil)
old_stack_used = @this_stack_used
@this_stack_used = (new_scope != {})
@this_stack_used = (new_scope != nil)
push(new_scope) if @this_stack_used
yield
ensure