summaryrefslogtreecommitdiff
path: root/app/services/emails/base_service.rb
blob: c94505b2068500ede7fef49cfa31b6ec5f52bc53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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
  end
end

Emails::BaseService.prepend_if_ee('::EE::Emails::BaseService')