Skip to content

Commit

Permalink
Merge pull request #255 from styrken/254-fix-verison-compare
Browse files Browse the repository at this point in the history
Compare GemVersions to GemVersions instead of string
  • Loading branch information
kennyadsl authored Jun 6, 2022
2 parents a487afe + d8df0c4 commit 640b592
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Spree
module Order
module FinalizeCreatesSubscriptions
def self.finalize_method
if ::Spree.solidus_version >= Gem::Version.new('3.2.0.alpha')
if Gem::Version.new(::Spree.solidus_version) >= Gem::Version.new('3.2.0.alpha')
:finalize
else
:finalize!
Expand Down

0 comments on commit 640b592

Please sign in to comment.