2018-07-16 12:31:01 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-06-16 09:06:14 -04:00
|
|
|
module Emails
|
|
|
|
class BaseService
|
2019-02-06 07:41:17 -05:00
|
|
|
attr_reader :current_user, :params, :user
|
2018-09-09 17:04:11 -04:00
|
|
|
|
2017-10-05 06:48:22 -04:00
|
|
|
def initialize(current_user, params = {})
|
2019-02-06 07:41:17 -05:00
|
|
|
@current_user = current_user
|
|
|
|
@params = params.dup
|
2017-10-05 06:48:22 -04:00
|
|
|
@user = params.delete(:user)
|
2017-06-16 09:06:14 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2020-04-29 08:10:00 -04:00
|
|
|
|
|
|
|
Emails::BaseService.prepend_if_ee('::EE::Emails::BaseService')
|