Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhttp://jneen.net/ <jneen@jneen.net>2017-08-03 00:14:53 +0300
committerhttp://jneen.net/ <jneen@jneen.net>2017-08-03 19:07:18 +0300
commiteaa503d679e3c2a1396091efebda49a91637cb02 (patch)
tree2c66a9d55be1bed171852712eea0d041e90cba94 /app/services/notification_recipient_service.rb
parent56a40a2b6548d57c2c2a32b34a76c157ae5fdeab (diff)
move the read_ability logic into NotificationRecipient
Diffstat (limited to 'app/services/notification_recipient_service.rb')
-rw-r--r--app/services/notification_recipient_service.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/app/services/notification_recipient_service.rb b/app/services/notification_recipient_service.rb
index 5d394f67631..7d4f8110f84 100644
--- a/app/services/notification_recipient_service.rb
+++ b/app/services/notification_recipient_service.rb
@@ -76,7 +76,6 @@ module NotificationRecipientService
custom_action: custom_action,
target: target,
acting_user: acting_user,
- read_ability: read_ability
)
end
@@ -91,15 +90,6 @@ module NotificationRecipientService
end
end
- def read_ability
- case target
- when Issuable
- :"read_#{target.to_ability_name}"
- when Ci::Pipeline
- :read_build # We have build trace in pipeline emails
- end
- end
-
def custom_action
nil
end
@@ -285,12 +275,6 @@ module NotificationRecipientService
note.project
end
- def read_ability
- return nil if target.nil?
-
- :"read_#{target.class.model_name.name.underscore}"
- end
-
def build!
# Add all users participating in the thread (author, assignee, comment authors)
add_participants(note.author)