class ActiveStorage::Current

def host

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