blob: 0ef335bf8a9e8be8eaff2191e8e4c9a399128304 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
class GpgSignature < ActiveRecord::Base
belongs_to :project
belongs_to :gpg_key
validates :commit_sha, presence: true
validates :project, presence: true
validates :gpg_key_primary_keyid, presence: true
def commit
project.commit(commit_sha)
end
end
|