debian-mirror-gitlab/app/models/commit_signatures/ssh_signature.rb
2023-03-05 14:24:40 +05:30

18 lines
278 B
Ruby

# frozen_string_literal: true
module CommitSignatures
class SshSignature < ApplicationRecord
include CommitSignature
include SignatureType
belongs_to :key, optional: true
def type
:ssh
end
def signed_by_user
key&.user
end
end
end