diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-25 16:23:52 +0200 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-27 15:46:03 +0200 |
commit | 98531fc2487f8d4d7de47fe9a1d60c10d1f1d9ba (patch) | |
tree | d14ee63551e5a24dbe104039557e2e6080ceb866 /app/models/gpg_signature.rb | |
parent | f86580c075f50b78517283febca012afcc8b6211 (diff) | |
download | gitlab-ce-98531fc2487f8d4d7de47fe9a1d60c10d1f1d9ba.tar.gz |
upcase in the model instead of in the view
Diffstat (limited to 'app/models/gpg_signature.rb')
-rw-r--r-- | app/models/gpg_signature.rb | 4 |
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 |