gitlab-org--gitlab-foss/app/services/emails/base_service.rb
Rémy Coutable eafe834c3d
Reduce remaining diff with EE in app/services
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-02-14 12:37:55 +01:00

13 lines
273 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