diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-02-24 22:07:57 +0300 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-27 16:40:41 +0300 |
commit | 0e3d3d60bae48f3698f9e7b0e060edb67170b11e (patch) | |
tree | 56bbe22a0f589574aa8b7d21271ba3a610b1c418 /app/models/gpg_key.rb | |
parent | 41c96c45f2696af54dde81271741a6342db5d55a (diff) |
email handling for gpg keys
Diffstat (limited to 'app/models/gpg_key.rb')
-rw-r--r-- | app/models/gpg_key.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/gpg_key.rb b/app/models/gpg_key.rb index a9f1400650c..146ca2f2705 100644 --- a/app/models/gpg_key.rb +++ b/app/models/gpg_key.rb @@ -28,8 +28,7 @@ class GpgKey < ActiveRecord::Base end def emails - raw_key = GPGME::Key.get(fingerprint) - raw_key.uids.map(&:email) + Gitlab::Gpg::CurrentKeyChain.emails(fingerprint) end private |