summaryrefslogtreecommitdiff
path: root/app/services/notification_service.rb
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2016-06-14 10:17:00 -0300
committerFelipe Artur <felipefac@gmail.com>2016-06-14 10:17:00 -0300
commitbef15a0f91ee82815bc1a79e2608201fcd83c2ca (patch)
tree8e2c05bf5a9bd0170a9a8a73664fda7529be103a /app/services/notification_service.rb
parent220708fa6ebca4ece1be0af4bb72933a4d72cc76 (diff)
downloadgitlab-ce-bef15a0f91ee82815bc1a79e2608201fcd83c2ca.tar.gz
Refactor custom notifications controller code and add specs
Diffstat (limited to 'app/services/notification_service.rb')
-rw-r--r--app/services/notification_service.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb
index 841912b72c5..369bc874843 100644
--- a/app/services/notification_service.rb
+++ b/app/services/notification_service.rb
@@ -524,7 +524,8 @@ class NotificationService
end
end
- # Builds key to be used if user has custom notification setting
+ # Build event key to search on custom notification level
+ # Check NotificationSetting::EMAIL_EVENTS
def build_custom_key(action, object)
"#{action}_#{object.class.name.underscore}".to_sym
end