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
Remove duplicated `has_payment_profile?` from `PaymentSource` (#12817)
Damian Legawiec3358ee2d2f51
diff --git a/core/app/models/spree/payment_source.rb b/core/app/models/spree/payment_source.rbindex 30ff156805..a0fde84ca8 100644--- a/core/app/models/spree/payment_source.rb+++ b/core/app/models/spree/payment_source.rb@@ -20,12 +20,6 @@ module Spree#delegate :profile_id, to: :gateway_customer, prefix: true, allow_nil: true- # Returns true if the payment source has a payment profile.- # @return [Boolean]- def has_payment_profile?- gateway_customer&.profile_id&.present? || gateway_payment_profile_id.present?- end-# Returns the gateway customer for the user.# @return [Spree::GatewayCustomer]def gateway_customer