summaryrefslogtreecommitdiff
path: root/app/models/gpg_key.rb
diff options
context:
space:
mode:
authorhaseeb <haseebeqx@gmail.com>2017-09-15 15:35:24 +0000
committerRémy Coutable <remy@rymai.me>2017-09-15 15:35:24 +0000
commitcc2daa74d83c98dc05dd92f0950a122b46b83c96 (patch)
tree15fd2a4af5cb199f989c838d3e88f0c906d9d322 /app/models/gpg_key.rb
parentff7eb46ddb2fc54baa7024334640f3fe99e43f9d (diff)
downloadgitlab-ce-cc2daa74d83c98dc05dd92f0950a122b46b83c96.tar.gz
created services for keys
Diffstat (limited to 'app/models/gpg_key.rb')
-rw-r--r--app/models/gpg_key.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/models/gpg_key.rb b/app/models/gpg_key.rb
index 1633acd4fa9..44deae4234b 100644
--- a/app/models/gpg_key.rb
+++ b/app/models/gpg_key.rb
@@ -36,7 +36,6 @@ class GpgKey < ActiveRecord::Base
before_validation :extract_fingerprint, :extract_primary_keyid
after_commit :update_invalid_gpg_signatures, on: :create
- after_commit :notify_user, on: :create
def primary_keyid
super&.upcase
@@ -107,8 +106,4 @@ class GpgKey < ActiveRecord::Base
# only allows one key
self.primary_keyid = Gitlab::Gpg.primary_keyids_from_key(key).first
end
-
- def notify_user
- NotificationService.new.new_gpg_key(self)
- end
end