From 61b41491fe4b2a32e73a133aa3308df1aae8eb2d Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Tue, 6 Apr 2021 12:42:14 +0100 Subject: [PATCH] Remove included_tax scope from Adjustment This scope is no longer used, and it's name is exactly the same as other method names and database columns on multiple objects, which is quite confusing. --- app/models/spree/adjustment.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/models/spree/adjustment.rb b/app/models/spree/adjustment.rb index a0bd3e1541..9062107ce8 100644 --- a/app/models/spree/adjustment.rb +++ b/app/models/spree/adjustment.rb @@ -72,9 +72,6 @@ module Spree scope :enterprise_fee, -> { where(originator_type: 'EnterpriseFee') } scope :admin, -> { where(source_type: nil, originator_type: nil) } - scope :included_tax, -> { - where(originator_type: 'Spree::TaxRate', adjustable_type: 'Spree::LineItem') - } scope :with_tax, -> { where('spree_adjustments.included_tax <> 0') } scope :without_tax, -> { where('spree_adjustments.included_tax = 0') }