From 38bbbf3c123cef6ed360215575ab4232fddfe17b Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Fri, 10 Jul 2020 15:18:10 +0200 Subject: [PATCH] Fix Style/NumericPredicate cop --- app/models/spree/payment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/spree/payment.rb b/app/models/spree/payment.rb index 46a9d924b375..e21f6a4eb0e8 100644 --- a/app/models/spree/payment.rb +++ b/app/models/spree/payment.rb @@ -84,7 +84,7 @@ def credit_allowed end def can_credit? - credit_allowed > 0 + credit_allowed.positive? end # see https://github.com/spree/spree/issues/981