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:
authorTimothy Andrew <mail@timothyandrew.net>2016-09-17 09:38:23 +0300
committerTimothy Andrew <mail@timothyandrew.net>2016-09-17 09:46:48 +0300
commitedb38d69cc6cffef46b6c7b957ad97ce213173cf (patch)
treee41eae3d77847cd4189ef3c7c21d29543c8fa0ea /app/models/cycle_analytics.rb
parent7d69ff3ddf0fb83c6a1ec02f85b01b454080b647 (diff)
Move cycle analytics JSON generation to a helper.
1. Use a new format, with each stage having a `title`, `description`, and `value.
Diffstat (limited to 'app/models/cycle_analytics.rb')
-rw-r--r--app/models/cycle_analytics.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/app/models/cycle_analytics.rb b/app/models/cycle_analytics.rb
index c26d50d693c..5f09e5d611b 100644
--- a/app/models/cycle_analytics.rb
+++ b/app/models/cycle_analytics.rb
@@ -6,13 +6,6 @@ class CycleAnalytics
@from = from
end
- def as_json(options = {})
- {
- issue: issue, plan: plan, code: code, test: test,
- review: review, staging: staging, production: production
- }
- end
-
def issue
calculate_metric!(:issue,
TableReferences.issues[:created_at],