gitlabhq/app/observers/note_observer.rb
2013-03-26 17:51:06 +02:00

12 lines
178 B
Ruby

class NoteObserver < ActiveRecord::Observer
def after_create(note)
notification.new_note(note)
end
protected
def notification
NotificationService.new
end
end