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)
|
||||
|
|
@ -75,7 +75,7 @@ class InvitationsController < Devise::InvitationsController
|
|||
invitation = current_user.invitations_from_me.where(:id => params[:id]).first
|
||||
if invitation
|
||||
Resque.enqueue(Job::ResendInvitation, invitation.id)
|
||||
flash[:notice] = I18n.t('invitations.create.sent') + invitation.recipient.email
|
||||
flash[:notice] = I18n.t('invitations.create.sent') + invitation.recipient.email
|
||||
end
|
||||
redirect_to :back
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue