aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/app/models/active_storage
diff options
context:
space:
mode:
Diffstat (limited to 'activestorage/app/models/active_storage')
-rw-r--r--activestorage/app/models/active_storage/blob/representable.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activestorage/app/models/active_storage/blob/representable.rb b/activestorage/app/models/active_storage/blob/representable.rb
index 0ad2e2fd77..88fc25b7ae 100644
--- a/activestorage/app/models/active_storage/blob/representable.rb
+++ b/activestorage/app/models/active_storage/blob/representable.rb
@@ -27,7 +27,7 @@ module ActiveStorage::Blob::Representable
# variable, call ActiveStorage::Blob#variable?.
def variant(transformations)
if variable?
- ActiveStorage::Variant.new(self, ActiveStorage::Variation.wrap(transformations))
+ ActiveStorage::Variant.new(self, transformations)
else
raise ActiveStorage::InvariableError
end
@@ -55,7 +55,7 @@ module ActiveStorage::Blob::Representable
# whether a blob is accepted by any previewer, call ActiveStorage::Blob#previewable?.
def preview(transformations)
if previewable?
- ActiveStorage::Preview.new(self, ActiveStorage::Variation.wrap(transformations))
+ ActiveStorage::Preview.new(self, transformations)
else
raise ActiveStorage::UnpreviewableError
end