From 2963a30cf9785bf5a60f06589846f557b2db8d0a Mon Sep 17 00:00:00 2001 From: George Claghorn Date: Fri, 6 Dec 2019 14:20:38 -0500 Subject: [PATCH] Go through ActiveStorage::Blob::Representable#variant to pick up tracking --- activestorage/app/models/active_storage/preview.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activestorage/app/models/active_storage/preview.rb b/activestorage/app/models/active_storage/preview.rb index 34a78f0318..fa334fcc0e 100644 --- a/activestorage/app/models/active_storage/preview.rb +++ b/activestorage/app/models/active_storage/preview.rb @@ -82,7 +82,7 @@ class ActiveStorage::Preview end def variant - ActiveStorage::Variant.new(image, variation).processed + image.variant(variation).processed end