ActiveStorage::Current.host attribute, which the disk service uses to generate URLs. Include this concern in custom controllers that call
ActiveStorage::Preview#url so the disk service can generate URLs using the same host, protocol, and base path as the current request.
- MODULE ActiveStorage
- MODULE ActiveStorage::SetCurrent