diff options
author | Alessandro Desantis <desa.alessandro@gmail.com> | 2020-06-13 19:07:06 +0200 |
---|---|---|
committer | Alessandro Desantis <desa.alessandro@gmail.com> | 2020-06-13 19:12:37 +0200 |
commit | 055d8f1edb309b2180c68400af9eb895cb83d16a (patch) | |
tree | 8ca0122c563aff43f1603447ebf3224890c379ba /app/models/solidus_subscriptions | |
parent | 8fc2d31cbf92ad27166bb4f379b15b5daaa50012 (diff) |
Fix deprecated call to `SolidusSupport.solidus_gem_version`
`SoliduSupport.solidus_gem_version` is deprecated since
`Spree.solidus_gem_version` is available in all the currently
maintained Solidus versions.
Diffstat (limited to 'app/models/solidus_subscriptions')
-rw-r--r-- | app/models/solidus_subscriptions/checkout.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/solidus_subscriptions/checkout.rb b/app/models/solidus_subscriptions/checkout.rb index d7e144c..e1facdb 100644 --- a/app/models/solidus_subscriptions/checkout.rb +++ b/app/models/solidus_subscriptions/checkout.rb @@ -118,7 +118,7 @@ module SolidusSubscriptions end def active_card - if SolidusSupport.solidus_gem_version < Gem::Version.new("2.2.0") + if ::Spree.solidus_gem_version.solidus_gem_version < Gem::Version.new("2.2.0") user.credit_cards.default.last else user.wallet.default_wallet_payment_source.payment_source |