debian-mirror-gitlab/app/services/emails/base_service.rb
2018-12-05 23:21:45 +05:30

12 lines
251 B
Ruby

# frozen_string_literal: true
module Emails
class BaseService
attr_reader :current_user
def initialize(current_user, params = {})
@current_user, @params = current_user, params.dup
@user = params.delete(:user)
end
end
end