mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
Instrument floats in ranges
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user