diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-03-26 10:34:09 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-03-26 10:34:09 +0200 |
commit | 5b019f4317c36df31e6e55ed302ca68a2033af63 (patch) | |
tree | fb6c08ca0bf8c03e2b06451fb1d2183c440a3dbe /lib | |
parent | 95f2826e1aa23809412f32263c399c67f005df16 (diff) | |
download | gitlab-ce-5b019f4317c36df31e6e55ed302ca68a2033af63.tar.gz |
Make stage seed instance variables less ambiguousbackstage/gb/populating-pipeline-refactoring
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/pipeline/seed/stage.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gitlab/ci/pipeline/seed/stage.rb b/lib/gitlab/ci/pipeline/seed/stage.rb index 323629b6e48..1fcbdc1b15a 100644 --- a/lib/gitlab/ci/pipeline/seed/stage.rb +++ b/lib/gitlab/ci/pipeline/seed/stage.rb @@ -12,13 +12,13 @@ module Gitlab @pipeline = pipeline @attributes = attributes - @seeds = attributes.fetch(:builds).map do |attributes| + @builds = attributes.fetch(:builds).map do |attributes| Seed::Build.new(@pipeline, attributes) end end def user=(current_user) - @seeds.each { |seed| seed.user = current_user } + @builds.each { |seed| seed.user = current_user } end def attributes @@ -28,8 +28,8 @@ module Gitlab end def seeds - strong_memoize(:seeds_included) do - @seeds.select(&:included?) + strong_memoize(:seeds) do + @builds.select(&:included?) end end |