What is this?
This commit is contained in:
parent
4fef3b7172
commit
b9c2d3758b
1 changed files with 2 additions and 2 deletions
|
|
@ -54,7 +54,7 @@ class InvitationsController < Devise::InvitationsController
|
|||
user = User.find_by_invitation_token(params[:user][:invitation_token])
|
||||
user.accept_invitation!(params[:user])
|
||||
user.seed_aspects
|
||||
rescue Exception => e
|
||||
rescue Exception => e #What exception is this trying to rescue? If it is ActiveRecord::NotFound, we should say so.
|
||||
user = nil
|
||||
record = e.record
|
||||
record.errors.delete(:person)
|
||||
|
|
|
|||
Loading…
Reference in a new issue