From a8de7cb470b2f9a64e80d2b3c69391bfcf5d1cd0 Mon Sep 17 00:00:00 2001 From: Martin Meyerhoff Date: Fri, 26 Feb 2016 15:16:07 +0100 Subject: [PATCH] Privatize TaxRate#default_zone_or_zone_match This method is an implementation detail (not the nices btw) of the current taxation system, and is only ever called from within tax_rate.rb. It's only relevant for VATs, untested, and generally a pain that I want to be able to freely change. --- core/app/models/spree/tax_rate.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/app/models/spree/tax_rate.rb b/core/app/models/spree/tax_rate.rb index 9607b25f194..1dc5ceb8692 100644 --- a/core/app/models/spree/tax_rate.rb +++ b/core/app/models/spree/tax_rate.rb @@ -123,12 +123,12 @@ def compute_amount(item) end end + private + def default_zone_or_zone_match?(order_tax_zone) Zone.default_tax.try!(:contains?, order_tax_zone) || zone.contains?(order_tax_zone) end - private - def create_label label = "" label << (name.present? ? name : tax_category.name) + " "