Sha256: 23f267b4558753d156d0e14bc5b4317280717262401443ea15b36edf3776537b
Contents?: true
Size: 687 Bytes
Versions: 5
Compression:
Stored size: 687 Bytes
Contents
# frozen_string_literal: true # Proxy files through application. This avoids having a redirect and makes files easier to cache. # # WARNING: All Active Storage controllers are publicly accessible by default. The # generated URLs are hard to guess, but permanent by design. If your files # require a higher level of protection consider implementing # {Authenticated Controllers}[https://edgeguides.rubyonrails.org/active_storage_overview.html#authenticated-controllers]. class ActiveStorage::Representations::ProxyController < ActiveStorage::Representations::BaseController def show http_cache_forever public: true do send_blob_stream @representation.image end end end
Version data entries
5 entries across 5 versions & 1 rubygems