summaryrefslogtreecommitdiff
path: root/app/services
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-26 19:00:54 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-26 19:00:54 +0200
commit3728c4904e61e47d23b6454754451bd716f4f422 (patch)
tree6e5cd97cf84db5a46c0f1ad9cde38046000099fe /app/services
parentce0945efcd36cc89d1b633500e4bdecf373fc304 (diff)
downloadgitlab-ce-3728c4904e61e47d23b6454754451bd716f4f422.tar.gz
refactor observers test since email logic moved to service
Diffstat (limited to 'app/services')
-rw-r--r--app/services/notification_service.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb
index 05a6730f918..37c8345e51e 100644
--- a/app/services/notification_service.rb
+++ b/app/services/notification_service.rb
@@ -108,4 +108,12 @@ class NotificationService
Notify.delay.note_commit_email(note.commit_author.id, note.id)
end
end
+
+ def new_team_member(users_project)
+ Notify.delay.project_access_granted_email(users_project.id)
+ end
+
+ def update_team_member(users_project)
+ Notify.delay.project_access_granted_email(users_project.id)
+ end
end