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 ...@@ -43,11 +43,10 @@ class InvitesController < ApplicationController
return @member if defined?(@member) return @member if defined?(@member)
@token = params[:id] @token = params[:id]
if member = Member.find_by_invite_token(@token)
@member = member @member = Member.find_by_invite_token(@token)
else
render_404 render_404 unless @member
end
end end
def authenticate_user! 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