summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorhttp://jneen.net/ <jneen@jneen.net>2017-07-31 15:04:42 -0700
committerhttp://jneen.net/ <jneen@jneen.net>2017-08-03 09:07:18 -0700
commit18288fe21e12bb524757a97472008eabfca5a352 (patch)
tree06aa2f38e4413d601a6c499e7a54c0cbb13c6755 /app
parente7d136ebdabf3f784412b859bf3ad7427c88e7f6 (diff)
downloadgitlab-ce-18288fe21e12bb524757a97472008eabfca5a352.tar.gz
style fixes
Diffstat (limited to 'app')
-rw-r--r--app/models/notification_recipient.rb15
-rw-r--r--app/services/notification_recipient_service.rb3
2 files changed, 10 insertions, 8 deletions
diff --git a/app/models/notification_recipient.rb b/app/models/notification_recipient.rb
index 1856dfe5734..28ac22da6e2 100644
--- a/app/models/notification_recipient.rb
+++ b/app/models/notification_recipient.rb
@@ -1,11 +1,13 @@
class NotificationRecipient
attr_reader :user, :type
- def initialize(user, type,
- custom_action: nil,
- target: nil,
- acting_user: nil,
- read_ability: nil,
- project: nil)
+ def initialize(
+ user, type,
+ custom_action: nil,
+ target: nil,
+ acting_user: nil,
+ read_ability: nil,
+ project: nil
+ )
@custom_action = custom_action
@acting_user = acting_user
@read_ability = read_ability
@@ -103,4 +105,3 @@ class NotificationRecipient
user.global_notification_setting
end
end
-
diff --git a/app/services/notification_recipient_service.rb b/app/services/notification_recipient_service.rb
index d412e5414b3..083b5f2d229 100644
--- a/app/services/notification_recipient_service.rb
+++ b/app/services/notification_recipient_service.rb
@@ -56,7 +56,8 @@ module NotificationRecipientService
end
def make_recipient(user, type)
- NotificationRecipient.new(user, type,
+ NotificationRecipient.new(
+ user, type,
project: project,
custom_action: custom_action,
target: target,