Sha256: 07df30282b8e51a8993e1efaa8b4540617e7c2d12de4f91e1737964815ad2a69
Contents?: true
Size: 337 Bytes
Versions: 3
Compression:
Stored size: 337 Bytes
Contents
module Spree module UserPaymentSource extend ActiveSupport::Concern included do has_many :credit_cards, class_name: "Spree::CreditCard", foreign_key: :user_id end def default_credit_card credit_cards.default.first end def payment_sources credit_cards.with_payment_profile end end end
Version data entries
3 entries across 3 versions & 1 rubygems