[refs #505] Remove unnessacary set_default_status method
This commit is contained in:
parent
f188a83eca
commit
2eff4d1160
|
@ -96,7 +96,6 @@ class BuildList < ActiveRecord::Base
|
|||
serialize :additional_repos
|
||||
serialize :include_repos
|
||||
|
||||
before_create :set_default_status
|
||||
after_create :place_build
|
||||
after_destroy :delete_container
|
||||
|
||||
|
@ -251,11 +250,6 @@ class BuildList < ActiveRecord::Base
|
|||
|
||||
protected
|
||||
|
||||
def set_default_status
|
||||
self.status = WAITING_FOR_RESPONSE unless self.status.present?
|
||||
return true
|
||||
end
|
||||
|
||||
def delete_container
|
||||
if can_cancel?
|
||||
BuildServer.delete_build_list bs_id
|
||||
|
|
Loading…
Reference in New Issue