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

add activestorage base_controller to prevent record not found errors

parent 63e38485
No related branches found
No related tags found
No related merge requests found
# frozen_string_literal: true
# The base class for all Active Storage controllers.
class ActiveStorage::BaseController < ActionController::Base
# Controller rewritten to add rescue_from rules
include ApplicationController::WithErrors
include ActiveStorage::SetCurrent
protect_from_forgery with: :exception
self.etag_with_template_digest = false
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