module SetCurrent
Ruby on Rails 6.1.7.10
Since v6.0.6Sets the ActiveStorage::Current.host attribute, which the disk service uses to generate URLs. Include this concern in custom controllers that call ActiveStorage::Blob#url, ActiveStorage::Variant#url, or ActiveStorage::Preview#url so the disk service can generate URLs using the same host, protocol, and base path as the current request.
Extends
Used by
Included by (1)
Methods (inherited)
From ActiveSupport::Concern (3)
- # class_methods
- # included
- # prepended