提交 5b019f43 编写于 作者: G Grzegorz Bizon

Make stage seed instance variables less ambiguous

上级 95f2826e
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册