Use NotificationService for observers pt1
This commit is contained in:
parent
f7e630c452
commit
448152ab94
3 changed files with 13 additions and 17 deletions
|
@ -35,4 +35,8 @@ class NoteObserver < ActiveRecord::Observer
|
|||
def team_without_note_author(note)
|
||||
note.project.users.reject { |u| u.id == note.author.id }
|
||||
end
|
||||
|
||||
def notification
|
||||
NotificationService.new
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue