mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-17 01:40:42 -07:00
Changed implementation of For in such a way that it only depends on the existence of a each method. This allows drops to simply implement each for enumeration
This commit is contained in:
@@ -60,6 +60,7 @@ module Liquid
|
||||
|
||||
# push new local scope on the stack. use <tt>Context#stack</tt> instead
|
||||
def push
|
||||
raise StackLevelError, "Nesting too deep" if @scopes.length > 100
|
||||
@scopes.unshift({})
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user