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.

Revert change to address.rb

Matthew Kennedy2a4703634724
diff --git a/core/app/models/spree/address.rb b/core/app/models/spree/address.rb
index 8d05bf2629..9bdf8d41c3 100644
--- a/core/app/models/spree/address.rb
+++ b/core/app/models/spree/address.rb
@@ -41,8 +41,7 @@ module Spree
validates :phone, if: :require_phone?
end
- validate :state_validate
- before_validation :postal_code_validate
+ validate :state_validate, :postal_code_validate
validates :label, uniqueness: { conditions: -> { where(deleted_at: nil) },
scope: :user_id,