Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2018-02-15 16:23:39 +0300
committerTiago Botelho <tiagonbotelho@hotmail.com>2018-02-28 13:46:20 +0300
commit335ee79a73fafdf00fac6e8ffc286ce4bad273ff (patch)
treed30033fd007c992448ce02f42e46f9da48e223cb /app/models/cycle_analytics.rb
parent3f31da9c69c550d1698a1376e37d36f4e6e309b5 (diff)
Refactors median code to work with both single and multiple projects
Diffstat (limited to 'app/models/cycle_analytics.rb')
-rw-r--r--app/models/cycle_analytics.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/cycle_analytics.rb b/app/models/cycle_analytics.rb
index 52eb07ae7d6..b34d1382d43 100644
--- a/app/models/cycle_analytics.rb
+++ b/app/models/cycle_analytics.rb
@@ -7,8 +7,8 @@ class CycleAnalytics
end
def all_medians_per_stage
- STAGES.each_with_object({}) do |stage_name, hsh|
- hsh[stage_name] = self[stage_name].median
+ STAGES.each_with_object({}) do |stage_name, medians_per_stage|
+ medians_per_stage[stage_name] = self[stage_name].median
end
end