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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Fix `Store.by_url` with active record encryption (#12704)
Damian Legawiecbdfcec2ad7aa
diff --git a/core/app/models/spree/store.rb b/core/app/models/spree/store.rbindex bb493761eb..68d9ba8d82 100644--- a/core/app/models/spree/store.rb+++ b/core/app/models/spree/store.rb@@ -190,7 +190,7 @@ module Spree#default_scope { order(created_at: :asc) }scope :by_custom_domain, ->(url) { left_joins(:custom_domains).where("#{Spree::CustomDomain.table_name}.url" => url) }- scope :by_url, ->(url) { where("#{table_name}.url like ?", "%#{url}%") }+ scope :by_url, ->(url) { where(url: url).or(where("#{table_name}.url like ?", "%#{url}%")) }## Delegations