diff options
author | haseeb <haseebeqx@gmail.com> | 2017-09-15 15:35:24 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-09-15 15:35:24 +0000 |
commit | cc2daa74d83c98dc05dd92f0950a122b46b83c96 (patch) | |
tree | 15fd2a4af5cb199f989c838d3e88f0c906d9d322 /app/models/key.rb | |
parent | ff7eb46ddb2fc54baa7024334640f3fe99e43f9d (diff) | |
download | gitlab-ce-cc2daa74d83c98dc05dd92f0950a122b46b83c96.tar.gz |
created services for keys
Diffstat (limited to 'app/models/key.rb')
-rw-r--r-- | app/models/key.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/app/models/key.rb b/app/models/key.rb index a6b4dcfec0d..4fa6cac2fd0 100644 --- a/app/models/key.rb +++ b/app/models/key.rb @@ -28,7 +28,6 @@ class Key < ActiveRecord::Base delegate :name, :email, to: :user, prefix: true after_commit :add_to_shell, on: :create - after_commit :notify_user, on: :create after_create :post_create_hook after_commit :remove_from_shell, on: :destroy after_destroy :post_destroy_hook @@ -118,8 +117,4 @@ class Key < ActiveRecord::Base "type is forbidden. Must be #{allowed_types}" end - - def notify_user - NotificationService.new.new_key(self) - end end |