Module: ActiveStorage::SetCurrent
- Extended by:
- ActiveSupport::Concern
- Included in:
- BaseController
- Defined in:
- activestorage/app/controllers/concerns/active_storage/set_current.rb
Overview
Sets the ActiveStorage::Current.url_options
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 port as the current request.
Method Summary
Methods included from ActiveSupport::Concern
append_features, class_methods, extended, included, prepend_features, prepended