#891: small refactoring
This commit is contained in:
parent
600db48278
commit
796289c57f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue