mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03: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