mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
ab8e3d22cb
Extract ActiveStorage::Streaming so your own controller can use it
10 lines
294 B
Ruby
10 lines
294 B
Ruby
# frozen_string_literal: true
|
|
|
|
# The base class for all Active Storage controllers.
|
|
class ActiveStorage::BaseController < ActionController::Base
|
|
include ActiveStorage::SetCurrent, ActiveStorage::Streaming
|
|
|
|
protect_from_forgery with: :exception
|
|
|
|
self.etag_with_template_digest = false
|
|
end
|