Merge pull request #538 from warpc/537-fixed_publish

#537 Убираем вызов к ядру при проверке возможности публикации.
This commit is contained in:
santaux 2012-06-22 05:16:10 -07:00
commit 4a23ae8897
1 changed files with 4 additions and 0 deletions

View File

@ -182,6 +182,10 @@ class BuildList < ActiveRecord::Base
[BUILD_PENDING, BuildServer::PLATFORM_PENDING].include? status && bs_id
end
def can_publish?
[BuildServer::SUCCESS, FAILED_PUBLISH].include? status
end
def can_reject_publish?
can_publish? and save_to_platform.released
end