mirror of https://github.com/rails/rails
f5acef7e48
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. |
||
---|---|---|
.. | ||
active_storage | ||
concerns/active_storage |