Skip to content

Commit

Permalink
Append items to config instead of overwriting
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdonarski committed Oct 25, 2023
1 parent 60991e4 commit 4ec3fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spree/backend/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Engine < ::Rails::Engine
Rails.application.config.spree_backend.actions[:users] = Spree::Admin::Actions::UsersDefaultActionsBuilder.new.build
Rails.application.config.spree_backend.actions[:user] = Spree::Admin::Actions::UserDefaultActionsBuilder.new.build
Rails.application.config.spree_backend.actions[:products] = Spree::Admin::Actions::ProductsDefaultActionsBuilder.new.build
Rails.application.config.spree_backend.actions[:images] = Spree::Admin::Actions::ImagesDefaultActionsBuilder.new.build
Rails.application.config.spree_backend.actions.include?(:images) ? (Rails.application.config.spree_backend.actions[:images].items << Spree::Admin::Actions::ImagesDefaultActionsBuilder.new.build.items).flatten! : Rails.application.config.spree_backend.actions[:images] = Spree::Admin::Actions::ImagesDefaultActionsBuilder.new.build
end
end
end
Expand Down

0 comments on commit 4ec3fdd

Please sign in to comment.