#891: small refactoring

This commit is contained in:
Vokhmin Alexey V 2013-02-05 15:44:06 +04:00
parent 600db48278
commit 796289c57f
2 changed files with 1 additions and 2 deletions

View File

@ -83,7 +83,7 @@ class ProductBuildList < ActiveRecord::Base
end
event :build_success do
transition :build_started => :build_completed
transition [:build_started, :build_canceling] => :build_completed
end
event :build_error do

View File

@ -15,7 +15,6 @@ module AbfWorker
when CANCELED
pbl.build_canceled
end
pbl.build_canceled if pbl.build_canceling?
if status != STARTED
update_results(pbl, options)
end