mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-20 03:10:39 -07:00
Use to_integer for range lookup arguments
This commit is contained in:
@@ -16,7 +16,9 @@ module Liquid
|
|||||||
end
|
end
|
||||||
|
|
||||||
def evaluate(context)
|
def evaluate(context)
|
||||||
context.evaluate(@start_obj).to_i..context.evaluate(@end_obj).to_i
|
start_int = Utils.to_integer(context.evaluate(@start_obj))
|
||||||
|
end_int = Utils.to_integer(context.evaluate(@end_obj))
|
||||||
|
start_int..end_int
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user