mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
f971a3f85d
It's very hard to understand what happens with the following exception URI::InvalidURIError: bad URI(is not URI?): nil that is raised when trying to generate a URL for Disk service without setting the ActiveStorage::Current.host first. This can happen when the ActiveStorage::SetCurrent is not included in a controller, or when testing URL generation outside of the controllers layer (eg. testing URL generation in a model). Co-authored-by: elia <elia@schito.me> Co-authored-by: filippo <dev@mailvore.com> |
||
---|---|---|
.. | ||
azure_storage_public_service_test.rb | ||
azure_storage_service_test.rb | ||
configurations.example.yml | ||
configurations.yml.enc | ||
configurator_test.rb | ||
disk_public_service_test.rb | ||
disk_service_test.rb | ||
gcs_public_service_test.rb | ||
gcs_service_test.rb | ||
mirror_service_test.rb | ||
s3_public_service_test.rb | ||
s3_service_test.rb | ||
shared_service_tests.rb |