Sha256: f8213d6a45328891797e10a705f128925e9dbf425224f120e71da8c2754b4269
Contents?: true
Size: 492 Bytes
Versions: 87
Compression:
Stored size: 492 Bytes
Contents
module InvitationsHelper def handle_outstanding_invitation # was this user registering to claim an invitation? if session[:invitation_uuid].present? # try to find the invitation, if it still exists. invitation = Invitation.find_by_uuid(session[:invitation_uuid]) # if the invitation was found, claim it for this user. invitation&.accept_for(current_user) # remove the uuid from the session. session.delete(:invitation_uuid) end end end
Version data entries
87 entries across 87 versions & 1 rubygems