gitlab-org--gitlab-foss/app/observers/base_observer.rb
2013-06-11 18:15:18 +03:00

13 lines
226 B
Ruby

class BaseObserver < ActiveRecord::Observer
def notification
NotificationService.new
end
def log_info message
Gitlab::AppLogger.info message
end
def current_user
Thread.current[:current_user]
end
end