summaryrefslogtreecommitdiff
path: root/app/models/cycle_analytics.rb
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2018-02-09 14:10:58 +0000
committerTiago Botelho <tiagonbotelho@hotmail.com>2018-02-28 10:46:19 +0000
commit7c109c575016eb0596e20180b334ca2955bd33e6 (patch)
treea24bcb16fea7c81b30d3fe7d3d2292d2a90d3295 /app/models/cycle_analytics.rb
parenta7b3f11edd626b7ba2fe4101951d2c9fe884b04a (diff)
downloadgitlab-ce-7c109c575016eb0596e20180b334ca2955bd33e6.tar.gz
Refactor CycleAnalytics base stage class and model
Diffstat (limited to 'app/models/cycle_analytics.rb')
-rw-r--r--app/models/cycle_analytics.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/cycle_analytics.rb b/app/models/cycle_analytics.rb
index a6191e569a7..c7f0e5f5cd8 100644
--- a/app/models/cycle_analytics.rb
+++ b/app/models/cycle_analytics.rb
@@ -31,7 +31,7 @@ class CycleAnalytics
end
def [](stage_name)
- Gitlab::CycleAnalytics::Stage[stage_name].new(project: @project, options: @options)
+ Gitlab::CycleAnalytics::Stage[stage_name].new(projects: [@project], options: @options)
end
private