#794: fix KeyPair model

This commit is contained in:
Vokhmin Alexey V 2013-01-18 01:09:03 +04:00
parent 4e213d77af
commit 11d0d5d1a0
1 changed files with 3 additions and 2 deletions

View File

@ -14,8 +14,9 @@ class KeyPair < ActiveRecord::Base
validate :check_keys
before_create { |record| record.key_id = @fingerprint }
after_create { |record| AbfWorker::BuildListsPublishTaskManager.resign_repository record },
:unless => Proc.new { |key_pair| key_pair.repository.platform.personal? }
after_create { |record|
AbfWorker::BuildListsPublishTaskManager.resign_repository(record) unless record.repository.platform.personal?
}
protected