diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-08-05 11:36:53 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-08-05 11:36:53 +0200 |
commit | d013642b2830171816a62a0c5aa3b51c12a7a2e8 (patch) | |
tree | b9624e88f0db5a16256cd8a93cd663f36e9cc213 /app/models | |
parent | bbfe09480c58d79d4b58c83ef6c202c9ccb282dc (diff) | |
download | gitlab-ci-d013642b2830171816a62a0c5aa3b51c12a7a2e8.tar.gz |
Rename create_builds_for_type to create_builds_for_stage in Commit model
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/commit.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index 7c1a015..1dc095a 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -99,7 +99,7 @@ class Commit < ActiveRecord::Base config_processor.stages.find { |stage| stages.include? stage } end - def create_builds_for_type(stage) + def create_builds_for_stage(stage) return if skip_ci? return unless config_processor @@ -124,7 +124,7 @@ class Commit < ActiveRecord::Base stages = builds.group_by(&:stage) config_processor.stages.any? do |stage| - !stages.include?(stage) && create_builds_for_type(stage).present? + !stages.include?(stage) && create_builds_for_stage(stage).present? end end @@ -133,7 +133,7 @@ class Commit < ActiveRecord::Base return unless config_processor config_processor.stages.any? do |stage| - create_builds_for_type(stage).present? + create_builds_for_stage(stage).present? end end |