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
Replace update_attributes! with update
Damian Legawiece226318df9f7
diff --git a/frontend/app/controllers/spree/currency_controller.rb b/frontend/app/controllers/spree/currency_controller.rbindex f6dc904c43..697dc72987 100644--- a/frontend/app/controllers/spree/currency_controller.rb+++ b/frontend/app/controllers/spree/currency_controller.rb@@ -3,7 +3,7 @@ module Spreedef set@currency = supported_currencies.find { |currency| currency.iso_code == params[:currency] }# Make sure that we update the current order, so the currency change is reflected.- current_order&.update_attributes!(currency: @currency.iso_code)+ current_order&.update(currency: @currency.iso_code)session[:currency] = params[:currency] if Spree::Config[:show_store_currency_selector]respond_to do |format|format.json { render json: [email protected]? }diff --git a/sample/db/samples/stock.rb b/sample/db/samples/stock.rbindex 5dfaa04e9f..82073e074e 100644--- a/sample/db/samples/stock.rb+++ b/sample/db/samples/stock.rb@@ -2,7 +2,7 @@ Spree::Sample.load_sample('variants')country = Spree::Country.find_by(iso: 'US')location = Spree::StockLocation.find_or_create_by!(name: 'default')-location.update_attributes!(+location.update(address1: 'Example Street',city: 'City',zipcode: '12345',