From f3af36deca56703e48cc9fa178c5c21adcddf58e Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Fri, 7 Jul 2017 15:33:40 +1000 Subject: [PATCH] Disable rubocop Style/PredicateName check against override of Spree method --- app/models/spree/credit_card_decorator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/spree/credit_card_decorator.rb b/app/models/spree/credit_card_decorator.rb index 0744bf5da5..8bcc43ff78 100644 --- a/app/models/spree/credit_card_decorator.rb +++ b/app/models/spree/credit_card_decorator.rb @@ -7,7 +7,7 @@ Spree::CreditCard.class_eval do # Should be able to remove once we reach Spree v2.2.0 # Commit: https://github.com/spree/spree/commit/5a4d690ebc64b264bf12904a70187e7a8735ef3f # See also: https://github.com/spree/spree_gateway/issues/111 - def has_payment_profile? + def has_payment_profile? # rubocop:disable Style/PredicateName gateway_customer_profile_id.present? || gateway_payment_profile_id.present? end end