Uncommented test observing comment event

This commit is contained in:
Dmitriy Zaporozhets 2012-12-14 22:05:10 +02:00
parent 0ff468160e
commit b79e00881e
3 changed files with 18 additions and 12 deletions

View file

@ -2,7 +2,7 @@ class ActivityObserver < ActiveRecord::Observer
observe :issue, :merge_request, :note, :milestone
def after_create(record)
event_author_id = record.author_id || record.author_id_of_changes
event_author_id = record.author_id
# Skip status notes
if record.kind_of?(Note) && record.note.include?("_Status changed to ")