Skip to content
Snippets Groups Projects
Commit ec5efd38 authored by pabois's avatar pabois
Browse files

rescue activerecord FileNotFoundError

parent 9c249100
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