Commit 2739f41f authored by Małgorzata Ksionek's avatar Małgorzata Ksionek

Change to_i method to to_f method

In order to stop showing 'Not enough data' in cycle analytics view

Remove puts from the file
parent c775e88c
......@@ -9,7 +9,7 @@ class AnalyticsStageEntity < Grape::Entity
expose :description
expose :median, as: :value do |stage|
# median returns a BatchLoader instance which we first have to unwrap by using to_i
!stage.median.to_i.zero? ? distance_of_time_in_words(stage.median) : nil
# median returns a BatchLoader instance which we first have to unwrap by using to_f
!stage.median.to_f.zero? ? distance_of_time_in_words(stage.median) : nil
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment