blob: e9e16651d1c95479627bb3ff2160a8697e71dda5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# frozen_string_literal: true
module CommitSignatures
class SshSignature < ApplicationRecord
include CommitSignature
include SignatureType
belongs_to :key, optional: true
belongs_to :user, optional: true
def type
:ssh
end
def signed_by_user
user || key&.user
end
def key_fingerprint_sha256
super || key&.fingerprint_sha256
end
end
end
|