diaspora/app/workers/mail/invite_email.rb
2017-09-17 19:29:15 +02:00

17 lines
433 B
Ruby

# frozen_string_literal: true
# Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
module Workers
module Mail
class InviteEmail < Base
sidekiq_options queue: :low
def perform(emails, inviter_id, options={})
EmailInviter.new(emails, User.find(inviter_id), options).send!
end
end
end
end