Files
openfoodnetwork/app/models
Maikel Linke 33d212d274 Gracefully deal with missing S3 config
I could have split this into several commits:

* DRY direct linking to images.
* Check S3 config before direct linking.
* Just check if service is public instead of relying on name.

Developers may copy a staging or production database or experiment with
S3 storage. But when the S3 config is missing then calling `service`
raises an ArgumentError due to a missing name.

Now we only try to call `service` if the S3 config is present.
2023-06-23 12:41:36 +10:00
..
2023-06-18 21:03:13 +02:00
2012-03-27 10:10:26 +11:00
2023-06-14 10:56:10 +01:00
2021-12-10 18:18:20 +00:00
2023-06-18 21:03:13 +02:00