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.

Include `Addresses` helper for all Admin controllers

Damian Legawiec811018f976bc
diff --git a/admin/app/controllers/spree/admin/base_controller.rb b/admin/app/controllers/spree/admin/base_controller.rb
index 81cc7931a8..2dd6f15104 100644
--- a/admin/app/controllers/spree/admin/base_controller.rb
+++ b/admin/app/controllers/spree/admin/base_controller.rb
@@ -15,6 +15,7 @@ module Spree
helper 'spree/admin/navigation'
helper 'spree/locale'
helper 'spree/currency'
+ helper 'spree/addresses'
before_action :authorize_admin
after_action :set_return_to, only: [:index]
diff --git a/admin/app/controllers/spree/admin/stock_locations_controller.rb b/admin/app/controllers/spree/admin/stock_locations_controller.rb
index 9991a7c2bc..5b42d765e6 100644
--- a/admin/app/controllers/spree/admin/stock_locations_controller.rb
+++ b/admin/app/controllers/spree/admin/stock_locations_controller.rb
@@ -1,8 +1,6 @@
module Spree
module Admin
class StockLocationsController < ResourceController
- helper 'spree/addresses'
-
before_action :set_country, only: :new
def mark_as_default