Use NotificationService for observers pt1

This commit is contained in:
Dmitriy Zaporozhets 2013-03-26 09:47:40 +02:00
parent f7e630c452
commit 448152ab94
3 changed files with 13 additions and 17 deletions

View file

@ -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