#794: fix KeyPair model
This commit is contained in:
parent
4e213d77af
commit
11d0d5d1a0
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue