chore: Upgrade rails and ruby versions (#2400)
ruby version: 3.0.2 rails version: 6.1.4
This commit is contained in:
parent
7e960b7c72
commit
ab54d9c629
61 changed files with 498 additions and 626 deletions
|
@ -16,7 +16,7 @@ class ApplicationController < ActionController::Base
|
|||
def handle_with_exception
|
||||
yield
|
||||
rescue ActiveRecord::RecordNotFound => e
|
||||
Raven.capture_exception(e)
|
||||
Sentry.capture_exception(e)
|
||||
render_not_found_error('Resource could not be found')
|
||||
rescue Pundit::NotAuthorizedError
|
||||
render_unauthorized('You are not authorized to do this action')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue