gitlabhq/app/observers/note_observer.rb

12 lines
178 B
Ruby
Raw Normal View History

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