Skip to content

Commit 6c83d92

Browse files
committed
fix: raise RoutingError to return 404 page
1 parent 855f8cb commit 6c83d92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/invitations_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def cancel_meeting
8888

8989
def set_invitation
9090
@invitation = Invitation.find_by(token: params[:token])
91-
head :not_found unless @invitation
91+
raise ActionController::RoutingError, 'Invitation not found' unless @invitation
9292
end
9393

9494
def load_invitation

0 commit comments

Comments
 (0)