-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to specify a custom attachment definition via config.taxon_attachment_module #3606
Comments
Yep, I think that @filippoliverani can you please take a look next Friday? 🙏 |
I agree, I'll update the check as soon as possible, thank you! |
With the combination of some extensions and the recent code merged that included support for ActiveStorage, it is no longer possible to specify a custom taxon attachment definition, the changes are in this commit d802e5b
For example, solidus_paypal_braintree gem has an initializer, that adds a custom helper that calls Solidus Payments Controller, which inherits from Admin Base Controller, which also inherits from BaseController, and it has the Spree::Config.active_storage_enabled? check, it compares the current taxon_attachment_module with ActiveStorages one, this initializer runs before any of my initializers including config/initializers/spree.rb, that's where I usually override default taxon_attachment_module to use my custom module, but it just sets the value but it was already loaded in taxon model
Steps to reproduce
Not sure how to fix it, maybe the most compatible one with current extensions ecosystem is to modify this check to not invoke the module?
What do you think?
The text was updated successfully, but these errors were encountered: