Skip to content

Commit

Permalink
Do not require active_storage/engine
Browse files Browse the repository at this point in the history
The activestorage adapter is optional and stores might
use another attachment adapter (ie. paperclip).

Since bundler already requires activestorage if the store
decided to use activestorage adapter (either via a direct
dependency or the transient rails gem) we do not need
to require it in our engine.

This removes a LoadError for stores/engines that do not
use activestorage.

(cherry picked from commit ea0254b)
  • Loading branch information
tvdeyen committed Oct 25, 2023
1 parent 629f013 commit 69f07ed
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/lib/spree/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
require "active_job/railtie"
require "active_model/railtie"
require "active_record/railtie"
require "active_storage/engine"
require "sprockets/railtie"

require 'acts_as_list'
Expand Down

0 comments on commit 69f07ed

Please sign in to comment.