Instrument floats in ranges

This commit is contained in:
Peter Zhu
2020-11-13 13:33:32 -05:00
parent ed0aebcbc9
commit f357662f37
2 changed files with 22 additions and 2 deletions

View File

@@ -8,6 +8,8 @@ module Liquid
if start_obj.respond_to?(:evaluate) || end_obj.respond_to?(:evaluate)
new(start_obj, end_obj)
else
Usage.increment('range_float') if start_obj.is_a?(Float) || end_obj.is_a?(Float)
start_obj.to_i..end_obj.to_i
end
end