comfortable-mexican-sofa icon indicating copy to clipboard operation
comfortable-mexican-sofa copied to clipboard

Rails 6.1 Active Storage's ImageProcessing transformer doesn't support :combine_options

Open librod89 opened this issue 4 years ago • 4 comments

Steps to reproduce

Using Rails 6.1 and comfortable-mexican-sofa with comfy-blog, when I navigate to "Files", I get a console error saying:

ArgumentError (Active Storage's ImageProcessing transformer doesn't support :combine_options, as it always generates a single ImageMagick command.)

I can see a lot of use of combine_files within the code. Here is just one example.

Is there any possibility of updating this in the near future?

System configuration

Rails version: 6.1.3

CMS version: 2.0.19

Ruby version: 2.7.1p83

librod89 avatar Feb 22 '21 20:02 librod89

in case this is still an issue, I submitted a PR addressing it: https://github.com/comfy/comfortable-mexican-sofa/pull/931

@librod89 in the meantime the fixed version can be used at https://github.com/restarone/comfortable-mexican-sofa the master branch works :+1:

donrestarone avatar Apr 04 '21 22:04 donrestarone

@donrestarone thanks for the PR! I don't think we should add the upgrade migration files for activestorage (5.2 => 6.1).

I'm not a maintainer, so I can only guess at what the proper way is. I imagine:

nitsujri avatar Apr 16 '21 03:04 nitsujri

@nitsujri Thanks for the tip! It's my first time contributing.

Im assuming I have to make a change to the generator right?

donrestarone avatar Apr 16 '21 19:04 donrestarone

@donrestarone actually based on your comment I realized the 00_create_active_storage_tables.active_storage.rb is not even loaded/"generated", only the 01_... file is.

So that means the 00 file is only for internal CMS development. At that point, your files might be valid (but renamed to something like 02_.. and 03_... It really depends on how multi-version development is managed (the travis.yml gives some insight).

I'm outside of my paygrade here so I can't give a recommendation, sorry.

nitsujri avatar Apr 17 '21 01:04 nitsujri