Welcome to mirror list, hosted at ThFree Co, Russian Federation.

base_service.rb « emails « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6f2b1018a6ab225fb9f0b95e524beefa707d34b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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')