class ActiveStorage::Current

:nodoc:

def host

def host
  ActiveSupport::Deprecation.warn("ActiveStorage::Current.host is deprecated, instead use ActiveStorage::Current.url_options")
  self.url_options&.dig(:host)
end

def host=(host)

def host=(host)
  ActiveSupport::Deprecation.warn("ActiveStorage::Current.host= is deprecated, instead use ActiveStorage::Current.url_options=")
  self.url_options = { host: host }
end