module ActiveStorage::SetCurrent
Sets the ActiveStorage::Current.host
attribute, which the disk service uses to generate URLs. Include this concern in custom controllers that call ActiveStorage::Blob#service_url, ActiveStorage::Variant#service_url, or ActiveStorage::Preview#service_url so the disk service can generate URLs using the same host, protocol, and base path as the current request.
© 2004–2019 David Heinemeier Hansson
Licensed under the MIT License.