gitlab-org--gitlab-foss/app/observers/base_observer.rb
Dmitriy Zaporozhets 6cc4ac7b98
Drop activity observer. User EventCreateService instead
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-03-25 15:07:54 +02:00

21 lines
344 B
Ruby

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 current_user
Thread.current[:current_user]
end
def current_commit
Thread.current[:current_commit]
end
end