Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
18288fe2
Commit
18288fe2
authored
Jul 31, 2017
by
http://jneen.net/
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style fixes
parent
e7d136eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
app/models/notification_recipient.rb
app/models/notification_recipient.rb
+8
-7
app/services/notification_recipient_service.rb
app/services/notification_recipient_service.rb
+2
-1
No files found.
app/models/notification_recipient.rb
View file @
18288fe2
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
app/services/notification_recipient_service.rb
View file @
18288fe2
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment