convert space to plus for invite email parameter

This commit is contained in:
Arpit Jalan 2014-08-06 14:02:00 +05:30
parent 33eca10860
commit b3926efebc

View file

@ -63,6 +63,7 @@ class InvitesController < ApplicationController
def redeem_disposable_invite
params.require(:email)
params.permit(:username, :name, :topic)
params[:email] = params[:email].split(' ').join('+')
invite = Invite.find_by(invite_key: params[:token])