app/controllers/devise/invitations_controller.rb in devise_invitable-2.0.5 vs app/controllers/devise/invitations_controller.rb in devise_invitable-2.0.6

- old
+ new

@@ -29,11 +29,11 @@ respond_with resource, location: after_invite_path_for(current_inviter) else respond_with resource, location: after_invite_path_for(current_inviter, resource) end else - respond_with_navigational(resource) { render :new } + respond_with_navigational(resource) { render :new, status: :unprocessable_entity } end end # GET /resource/invitation/accept?invitation_token=abcdef def edit @@ -61,10 +61,10 @@ set_flash_message :notice, :updated_not_active if is_flashing_format? respond_with resource, location: new_session_path(resource_name) end else resource.invitation_token = raw_invitation_token - respond_with_navigational(resource) { render :edit } + respond_with_navigational(resource) { render :edit, status: :unprocessable_entity } end end # GET /resource/invitation/remove?invitation_token=abcdef def destroy