diff options
author | George Claghorn <george.claghorn@gmail.com> | 2018-02-24 15:27:53 -0500 |
---|---|---|
committer | George Claghorn <george.claghorn@gmail.com> | 2018-02-24 15:27:57 -0500 |
commit | 3915a470d2b8898fdbc384d0f9f31e2ad8a2c899 (patch) | |
tree | fee562827a93af6ebec14543f6106c1fc1248e5b /activestorage/app/models/active_storage | |
parent | d04b5179ffc26ab7bfd7210e1103f5ab4f1bd54f (diff) | |
download | rails-3915a470d2b8898fdbc384d0f9f31e2ad8a2c899.tar.gz rails-3915a470d2b8898fdbc384d0f9f31e2ad8a2c899.tar.bz2 rails-3915a470d2b8898fdbc384d0f9f31e2ad8a2c899.zip |
Support varying ICO files
Closes #32096.
Diffstat (limited to 'activestorage/app/models/active_storage')
-rw-r--r-- | activestorage/app/models/active_storage/variant.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/app/models/active_storage/variant.rb b/activestorage/app/models/active_storage/variant.rb index e08a2271ec..a95a4bfd7c 100644 --- a/activestorage/app/models/active_storage/variant.rb +++ b/activestorage/app/models/active_storage/variant.rb @@ -115,7 +115,7 @@ class ActiveStorage::Variant def download_image require "mini_magick" - MiniMagick::Image.create { |file| download_blob_to(file) } + MiniMagick::Image.create(blob.filename.extension_with_delimiter) { |file| download_blob_to(file) } end def transform(image) |