Remove a return
This commit is contained in:
parent
89dec3d363
commit
46d02d3e2b
1 changed files with 3 additions and 3 deletions
|
@ -4,11 +4,11 @@ class Users::Dossiers::InvitesController < UsersController
|
||||||
email = params[:email]
|
email = params[:email]
|
||||||
|
|
||||||
if email.present? && User.find_by(email: email).nil?
|
if email.present? && User.find_by(email: email).nil?
|
||||||
return redirect_to new_user_registration_path(user: { email: email })
|
redirect_to new_user_registration_path(user: { email: email })
|
||||||
end
|
else
|
||||||
|
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
invite = Invite.where(email: current_user.email, id: params[:id].to_i).first!
|
invite = Invite.where(email: current_user.email, id: params[:id].to_i).first!
|
||||||
|
|
Loading…
Add table
Reference in a new issue