diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/active_storage/variant.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/active_storage/variant.rb b/app/models/active_storage/variant.rb index 002d2bde5b..8785625cc8 100644 --- a/app/models/active_storage/variant.rb +++ b/app/models/active_storage/variant.rb @@ -1,5 +1,4 @@ require "active_storage/blob" -require "mini_magick" # Image blobs can have variants that are the result of a set of transformations applied to the original. class ActiveStorage::Variant @@ -34,6 +33,7 @@ class ActiveStorage::Variant end def transform(io) + require "mini_magick" File.open MiniMagick::Image.read(io).tap { |image| variation.transform(image) }.path end end |