Skip to content

Commit

Permalink
🐞 Neighborhood: Handle ActiveRecord::RecordNotFound
Browse files Browse the repository at this point in the history
- #1754

It appears we do not ... do the baseline NotFound handling... Oops.
  • Loading branch information
zspencer committed Aug 14, 2023
1 parent 20cd166 commit 197970f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ class ApplicationController < ActionController::Base
before_action :enforce_ssl
before_action :ensure_on_byo_domain

rescue_from ActiveRecord::RecordNotFound, with: :render_not_found

include Pundit::Authorization
after_action :verify_authorized, except: [:index] # rubocop:disable Rails/LexicallyScopedActionFilter
after_action :verify_policy_scoped
Expand Down

0 comments on commit 197970f

Please sign in to comment.