Revision 9fb80abe
Added by Ondřej Pražák over 7 years ago
app/models/foreman_pipeline/concerns/kt_environment_extension.rb | ||
---|---|---|
8 | 8 |
:dependent => :destroy, :foreign_key => :to_environment_id |
9 | 9 |
has_many :jobs, :through => :job_to_environments, :class_name => 'ForemanPipeline::Job', :dependent => :nullify |
10 | 10 |
end |
11 |
|
|
11 |
|
|
12 | 12 |
def full_paths |
13 | 13 |
return [self.full_path] unless library? |
14 | 14 |
successors.map(&:full_path) |
Also available in: Unified diff
making promoting decisions more robust