Skip to content

Commit

Permalink
Use Active Storage adapters as default configuration value
Browse files Browse the repository at this point in the history
This is important because extensions that are testing against Solidus
3.0 does not have the default adapter set to Active Storage; extensions'
dummy app is not executing the solidus:install command and won't have
the intializer copied over to configure the app.
  • Loading branch information
kennyadsl committed Mar 2, 2021
1 parent 93bfdb4 commit 1bf1dea
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/lib/spree/app_configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -437,23 +437,23 @@ def payment_canceller

# Allows switching attachment library for Image
#
# `Spree::Image::PaperclipAttachment`
# is the default and provides the classic Paperclip implementation.
# `Spree::Image::ActiveStorageAttachment`
# is the default and provides the Active Storage implementation.
#
# @!attribute [rw] image_attachment_module
# @return [Module] a module that can be included into Spree::Image to allow attachments
# Enumerable of images adhering to the present_image_class interface
class_name_attribute :image_attachment_module, default: 'Spree::Image::PaperclipAttachment'
class_name_attribute :image_attachment_module, default: 'Spree::Image::ActiveStorageAttachment'

# Allows switching attachment library for Taxon
#
# `Spree::Taxon::PaperclipAttachment`
# is the default and provides the classic Paperclip implementation.
# `Spree::Taxon::ActiveStorageAttachment`
# is the default and provides the Active Storage implementation.
#
# @!attribute [rw] taxon_attachment_module
# @return [Module] a module that can be included into Spree::Taxon to allow attachments
# Enumerable of taxons adhering to the present_taxon_class interface
class_name_attribute :taxon_attachment_module, default: 'Spree::Taxon::PaperclipAttachment'
class_name_attribute :taxon_attachment_module, default: 'Spree::Taxon::ActiveStorageAttachment'

# Allows providing your own class instance for generating order numbers.
#
Expand Down

0 comments on commit 1bf1dea

Please sign in to comment.