Sha256: 915bded4e41785795bbf40d4b50689f0b32a1b4a4bd344ba2a38c89df4cc6f05

Contents?: true

Size: 424 Bytes

Versions: 37

Compression:

Stored size: 424 Bytes

Contents

# frozen_string_literal: true

# The base class for all Active Storage controllers.
class ActiveStorage::BaseController < ActionController::Base
  include ActiveStorage::SetCurrent

  protect_from_forgery with: :exception

  self.etag_with_template_digest = false

  private
    def stream(blob)
      blob.download do |chunk|
        response.stream.write chunk
      end
    ensure
      response.stream.close
    end
end

Version data entries

37 entries across 37 versions & 4 rubygems

Version Path
activestorage-6.1.7.10 app/controllers/active_storage/base_controller.rb
activestorage-6.1.7.9 app/controllers/active_storage/base_controller.rb
activestorage-6.1.7.8 app/controllers/active_storage/base_controller.rb
activestorage-6.1.7.7 app/controllers/active_storage/base_controller.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activestorage-6.1.6.1/app/controllers/active_storage/base_controller.rb
activestorage-6.1.7.6 app/controllers/active_storage/base_controller.rb
activestorage-6.1.7.5 app/controllers/active_storage/base_controller.rb
activestorage-6.1.7.4 app/controllers/active_storage/base_controller.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activestorage-6.1.6.1/app/controllers/active_storage/base_controller.rb
activestorage-6.1.7.3 app/controllers/active_storage/base_controller.rb
activestorage-6.1.7.2 app/controllers/active_storage/base_controller.rb
activestorage-6.1.7.1 app/controllers/active_storage/base_controller.rb
activestorage-6.1.7 app/controllers/active_storage/base_controller.rb
activestorage-6.1.6.1 app/controllers/active_storage/base_controller.rb
activestorage-6.1.6 app/controllers/active_storage/base_controller.rb
activestorage-6.1.5.1 app/controllers/active_storage/base_controller.rb
activestorage-6.1.5 app/controllers/active_storage/base_controller.rb
activestorage-6.1.4.7 app/controllers/active_storage/base_controller.rb
activestorage-6.1.4.6 app/controllers/active_storage/base_controller.rb
activestorage-6.1.4.5 app/controllers/active_storage/base_controller.rb