mirror of
https://github.com/kemko/liquid.git
synced 2026-01-06 02:05:41 +03:00
Avoid modifying the default resources limits hash.
This commit is contained in:
@@ -21,7 +21,7 @@ module Liquid
|
||||
@scopes = [(outer_scope || {})]
|
||||
@registers = registers
|
||||
@errors = []
|
||||
@resource_limits = resource_limits || Template.default_resource_limits
|
||||
@resource_limits = resource_limits || Template.default_resource_limits.dup
|
||||
@resource_limits[:render_score_current] = 0
|
||||
@resource_limits[:assign_score_current] = 0
|
||||
@parsed_expression = Hash.new{ |cache, markup| cache[markup] = Expression.parse(markup) }
|
||||
|
||||
Reference in New Issue
Block a user