Sha256: f3da10a9f251315a5ed486edf92cbf4d02f0a13877cf229d5cd3d0fa9f9c53fa
Contents?: true
Size: 508 Bytes
Versions: 37
Compression:
Stored size: 508 Bytes
Contents
# frozen_string_literal: true class ActiveStorage::Current < ActiveSupport::CurrentAttributes # :nodoc: attribute :url_options def host=(host) ActiveSupport::Deprecation.warn("ActiveStorage::Current.host= is deprecated, instead use ActiveStorage::Current.url_options=") self.url_options = { host: host } end def host ActiveSupport::Deprecation.warn("ActiveStorage::Current.host is deprecated, instead use ActiveStorage::Current.url_options") self.url_options&.dig(:host) end end
Version data entries
37 entries across 35 versions & 4 rubygems