Use Note#for_project_snippet? to skip notes on project snippet

This commit is contained in:
Douglas Barbosa Alexandre 2016-03-18 10:34:23 -03:00
parent 231d4fb9f8
commit 71cc3caa85

View file

@ -123,7 +123,7 @@ class TodoService
def handle_note(note, author)
# Skip system notes, and notes on project snippet
return if note.system? || ['Snippet'].include?(note.noteable_type)
return if note.system? || note.for_project_snippet?
project = note.project
target = note.noteable