2013-03-26 16:11:38 +00:00
|
|
|
class BaseObserver < ActiveRecord::Observer
|
|
|
|
def notification
|
|
|
|
NotificationService.new
|
|
|
|
end
|
|
|
|
|
2014-03-25 13:07:54 +00:00
|
|
|
def event_service
|
|
|
|
EventCreateService.new
|
|
|
|
end
|
|
|
|
|
2013-03-26 16:11:38 +00:00
|
|
|
def log_info message
|
|
|
|
Gitlab::AppLogger.info message
|
|
|
|
end
|
|
|
|
end
|