gitlab-org--gitlab-foss/app/services/emails/base_service.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
402 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Emails
class BaseService
attr_reader :current_user, :params, :user
def initialize(current_user, params = {})
@current_user = current_user
@params = params.dup
@user = params.delete(:user)
end
def notification_service
NotificationService.new
end
end
end
Emails::BaseService.prepend_mod_with('Emails::BaseService')