Skip to content
Snippets Groups Projects
Commit 5b019f43 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Make stage seed instance variables less ambiguous

parent 95f2826e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
@@ -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
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment