Module: Dscf::Core::AttachmentUrls

Extended by:
ActiveSupport::Concern
Included in:
Business, Document
Defined in:
app/models/concerns/dscf/core/attachment_urls.rb

Overview

Shared Active Storage URL helper for plain has_one_attached/ has_many_attached models (distinct from the custom Attachable/ FileAttachment system). Produces a host-aware proxy URL — unlike only_path: true, which drops the host entirely and can't be used to build an from a separate frontend origin.