Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Add `reports` entry point in Spree app environment

Damian Legawieca40de619a733
diff --git a/core/lib/spree/core/engine.rb b/core/lib/spree/core/engine.rb
index 96d6878e58..ec98e04273 100644
--- a/core/lib/spree/core/engine.rb
+++ b/core/lib/spree/core/engine.rb
@@ -19,7 +19,8 @@ module Spree
:theme_layout_sections,
:pages,
:page_sections,
- :page_blocks)
+ :page_blocks,
+ :reports)
SpreeCalculators = Struct.new(:shipping_methods, :tax_rates, :promotion_actions_create_adjustments, :promotion_actions_create_item_adjustments)
PromoEnvironment = Struct.new(:rules, :actions)
isolate_namespace Spree
@@ -223,6 +224,8 @@ module Spree
Spree::PageBlocks::Products::VariantPicker,
Spree::PageBlocks::Products::BuyButtons
]
+
+ Rails.application.config.spree.reports = []
end
initializer 'spree.promo.register.promotions.actions' do |app|