summaryrefslogtreecommitdiff
path: root/app/models/gpg_signature.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/gpg_signature.rb')
-rw-r--r--app/models/gpg_signature.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/gpg_signature.rb b/app/models/gpg_signature.rb
index 9ac89f0bbbf..cb69106183d 100644
--- a/app/models/gpg_signature.rb
+++ b/app/models/gpg_signature.rb
@@ -11,6 +11,10 @@ class GpgSignature < ActiveRecord::Base
validates :project, presence: true
validates :gpg_key_primary_keyid, presence: true
+ def gpg_key_primary_keyid
+ super&.upcase
+ end
+
def commit
project.commit(commit_sha)
end