From d013642b2830171816a62a0c5aa3b51c12a7a2e8 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Wed, 5 Aug 2015 11:36:53 +0200 Subject: Rename create_builds_for_type to create_builds_for_stage in Commit model --- app/models/commit.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/models/commit.rb') 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 -- cgit v1.2.1