Support float in variable range

This commit is contained in:
Peter Zhu
2020-11-13 09:29:09 -05:00
parent eab12e1240
commit 76dbb0d640
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ module Liquid
case input
when Integer
input
when NilClass, String
when NilClass, String, Float
input.to_i
else
Utils.to_integer(input)