DanH
10/13/2021, 2:45 AMJared Norman
has_attached_file is a Paperclip thing and has_one_attached I assume is ActiveStorage.
We've switched to ActiveStorage as the default backend... but it look like something is wonky with your setup.afdev82
10/13/2021, 7:13 AMimage_attachment_module?
config.image_attachment_module = 'Spree::Image::PaperclipAttachment'
config.taxon_attachment_module = 'Spree::Taxon::PaperclipAttachment'
I remember I had to do this once upgraded.
Docs: https://github.com/solidusio/solidus/discussions/4030#discussioncomment-633922DanH
10/14/2021, 3:41 AMDanH
10/14/2021, 3:45 AMafdev82
10/14/2021, 7:18 AMTake care you don't have any customization of Spree::Image.attachment_definitions before that preference (even in other initializer files loaded before, eg config/initializers/paperclip.rb). If you do, you'll see the error described above.Please follow what they say about moving them in a decorator