solidusio / rubocop-solidus

Automatic Solidus code style checking tool.
MIT License
4 stars 4 forks source link

Replace Spree::User#user.default_credit_card with Spree::User#wallet.default_wallet_payment_source #33

Open DanielePalombo opened 1 year ago

DanielePalombo commented 1 year ago

From solidus 2.2 the default_credit_card has been deprecated in favor of wallet.default_credit_card

ref https://github.com/solidusio/solidus/pull/1707/commits/b11cf2818d26545553219f560ce96a93863e0560

minimum solidus version: 2.2

16

DanielePalombo commented 1 year ago

@piyushswain to investigate on it to check if it's dangerous. Maybe we can totally remove it.