diaspora/app/models/jobs/resend_invitation.rb
2011-07-02 12:05:26 -07:00

14 lines
346 B
Ruby

# Copyright (c) 2010, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
module Job
class ResendInvitation < Base
@queue = :mail
def self.perform(invitation_id)
inv = Invitation.where(:id => invitation_id).first
inv.resend
end
end
end