summaryrefslogtreecommitdiff
path: root/app/observers/base_observer.rb
blob: 5a821d269a29d13b3a846f4f4b57bc9177c63b00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class BaseObserver < ActiveRecord::Observer
  def notification
    NotificationService.new
  end

  def event_service
    EventCreateService.new
  end

  def log_info message
    Gitlab::AppLogger.info message
  end

  def system_hook_service
    SystemHooksService.new
  end
end