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.

fix deprecation warning on destroying CC (#14044)

Kacper Mękarski1d060467faf5
diff --git a/spree/core/app/services/spree/credit_cards/destroy.rb b/spree/core/app/services/spree/credit_cards/destroy.rb
index db085942dc..4710651231 100644
--- a/spree/core/app/services/spree/credit_cards/destroy.rb
+++ b/spree/core/app/services/spree/credit_cards/destroy.rb
@@ -11,7 +11,7 @@ module Spree
"#{self.class.name} is deprecated and will be removed in Spree 6.0. " \
'Use card.destroy directly instead. Payment cleanup is now handled ' \
'automatically by the before_destroy callback in PaymentSourceConcern.',
- caller
+ caller_locations(2)
)
if card.destroy