comfy / comfortable-mexican-sofa

ComfortableMexicanSofa is a powerful Ruby on Rails 5.2+ CMS (Content Management System) Engine
MIT License
2.72k stars 637 forks source link

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

Open librod89 opened 3 years ago

librod89 commented 3 years ago

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

donrestarone commented 3 years ago

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:

nitsujri commented 3 years ago

@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:

donrestarone commented 3 years ago

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

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

nitsujri commented 3 years ago

@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.