From 376d50c8fb95b625fa15c31c5228b75f9202725c Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Wed, 6 Feb 2013 14:59:36 +0400 Subject: [PATCH] #756: remove 'build_canceled' status from transitions "tests_failed" and "build_error" --- app/models/build_list.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/build_list.rb b/app/models/build_list.rb index d3d00f545..191741259 100644 --- a/app/models/build_list.rb +++ b/app/models/build_list.rb @@ -204,11 +204,11 @@ class BuildList < ActiveRecord::Base end event :build_error do - transition [:build_started, :build_canceled, :build_canceling] => :build_error + transition [:build_started, :build_canceling] => :build_error end event :tests_failed do - transition [:build_started, :build_canceled, :build_canceling] => :tests_failed + transition [:build_started, :build_canceling] => :tests_failed end HUMAN_STATUSES.each do |code,name|