debian-mirror-gitlab/app/services/emails/base_service.rb
2020-05-24 23:13:21 +05:30

15 lines
337 B
Ruby

# 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')