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.

Merge pull request #10386 from spark-solutions/feature/store-logo

Damian Legawiecade5089350d5
diff --cc core/app/models/spree/store.rb
index cdc85ceea7,da2fe2d564..ccc50e5388
--- a/core/app/models/spree/store.rb
+++ b/core/app/models/spree/store.rb
@@@ -5,13 -5,10 +5,13 @@@ module Spre
belongs_to :default_country, class_name: 'Spree::Country'
with_options presence: true do
- validates :name, :url, :mail_from_address, :default_currency
+ validates :name, :url, :mail_from_address, :default_currency, :code
end
- connection.column_exists?(:spree_stores, :new_order_notifications_email) do
+ if !ENV['SPREE_DISABLE_DB_CONNECTION'] &&
+ connected? &&
+ table_exists? &&
+ connection.column_exists?(:spree_stores, :new_order_notifications_email)
validates :new_order_notifications_email, email: { allow_blank: true }
end