diaspora/app/models/jobs/mail/invite_user_by_email.rb
2011-10-31 21:11:47 +01:00

18 lines
429 B
Ruby

# 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 Jobs
module Mail
class InviteUserByEmail < Base
@queue = :mail
def self.perform(invite_id)
invite = Invitation.find(invite_id)
I18n.with_locale(invite.language) do
invite.send!
end
end
end
end
end