diff options
author | James Lopez <james@jameslopez.es> | 2017-01-12 14:48:01 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-01-17 13:32:55 +0300 |
commit | 150a448596dda076f0893facbd621429738aba92 (patch) | |
tree | a365c22f24552946c3209355f271bf23872897b7 /app | |
parent | 34875ce6b760980c1539c3ab88af0429e04d90bc (diff) |
refactored a bunch of stuff based on feedback
Diffstat (limited to 'app')
-rw-r--r-- | app/models/cycle_analytics.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/cycle_analytics.rb b/app/models/cycle_analytics.rb index 37ac56310ef..054a6070bb8 100644 --- a/app/models/cycle_analytics.rb +++ b/app/models/cycle_analytics.rb @@ -17,7 +17,7 @@ class CycleAnalytics end def no_stats? - stats.map { |hash| hash[:value] }.compact.empty? + stats.all? { hash[:value].nil? } end def permissions(user:) @@ -32,7 +32,7 @@ class CycleAnalytics def stats_per_stage STAGES.map do |stage_name| - self[stage_name].median_data + self[stage_name].as_json end end end |