diff --git a/app/controllers/active_storage/base_controller.rb b/app/controllers/active_storage/base_controller.rb new file mode 100644 index 0000000000000000000000000000000000000000..afb2fc3768987dfd551b1e5d153b4ab0d7a874e8 --- /dev/null +++ b/app/controllers/active_storage/base_controller.rb @@ -0,0 +1,12 @@ +# 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