Skip to content
Snippets Groups Projects
Unverified Commit 39cf3cb7 authored by Pierre-André Boissinot's avatar Pierre-André Boissinot Committed by GitHub
Browse files

Merge pull request #610 from noesya/rescue_form_activestorage_error

rescue activerecord FileNotFoundError
parents 9343c728 ec5efd38
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,10 @@ module ApplicationController::WithErrors
render_not_found
end
rescue_from ActiveRecord::ActiveStorage::FileNotFoundError do |exception|
render_not_found
end
def raise_403_unless(condition)
raise CanCan::AccessDenied unless condition
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment