Commit a8b462bb authored by Douwe Maan's avatar Douwe Maan

Clear up InvitesController member lookup logic.

parent 1c0b58a7
......@@ -43,11 +43,10 @@ class InvitesController < ApplicationController
return @member if defined?(@member)
@token = params[:id]
if member = Member.find_by_invite_token(@token)
@member = member
else
render_404
end
@member = Member.find_by_invite_token(@token)
render_404 unless @member
end
def authenticate_user!
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment