Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
URI.encode has been removed from Ruby 3
Image caching were not working because the Image model silently decided all image were "internal": the URI.encode (aka URI.escape) method does not exist anymore in Ruby 3, which raised an error which where ignored by the "rescue" line. Instead of doing "URI.parse(URI.encode(str))", we are just doing "URI.join(str)", because the join method converts firt the str to RFC3986. As this method does not raise error, the "rescue" part has been removed too.
- Loading branch information