rails/activestorage/test/controllers
chaadow f5acef7e48 Fix AS:Representations::ProxyController returning the wrong preview
When a blob is a representable of kind `previewable`, the preview
image that's being proxied is always the original preview image,
discarding completely the `variation_key` param passed in the request.

This commit fixes this by editing `Preview` and `VariantWithRecord` to
have full synchronized API with `Variant`. this will then allow the
ProxyController to not call `representable#image` but `representable`
instead.

As all 3 classes are now 100% interchangeable, we can deprecate the use
of `Representable#image`. Users of this class won't need to call this
method as it's become obsolete. and in case of `Preview#image`
erroneous.
2023-11-21 21:00:35 +01:00
..
blobs Add expires_at option to ActiveStorage::Blob#signed_id 2023-09-26 21:08:20 +00:00
representations Fix AS:Representations::ProxyController returning the wrong preview 2023-11-21 21:00:35 +01:00
direct_uploads_controller_test.rb Ensure response.parsed_body support for pattern matching 2023-08-23 13:28:02 -04:00
disk_controller_test.rb [ActiveStorage] Return "Range Not Satisfiable" return code for partial downloads with incorrect range 2022-08-31 00:39:33 +03:00