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