From 98b1a75d7beab35f7dc076c278a000b08d5c1051 Mon Sep 17 00:00:00 2001 From: Jon Mason Date: Wed, 30 May 2018 11:29:09 -0700 Subject: [PATCH] Remove belongs_to :return_authorization from InventoryUnit This association appears to do nothing, and specs all pass without it. --- core/app/models/spree/inventory_unit.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/core/app/models/spree/inventory_unit.rb b/core/app/models/spree/inventory_unit.rb index 45a9bc05aab..2a97ce6da33 100644 --- a/core/app/models/spree/inventory_unit.rb +++ b/core/app/models/spree/inventory_unit.rb @@ -10,7 +10,6 @@ class InventoryUnit < Spree::Base belongs_to :variant, -> { with_deleted }, class_name: "Spree::Variant", inverse_of: :inventory_units belongs_to :shipment, class_name: "Spree::Shipment", touch: true, inverse_of: :inventory_units - belongs_to :return_authorization, class_name: "Spree::ReturnAuthorization", inverse_of: :inventory_units belongs_to :carton, class_name: "Spree::Carton", inverse_of: :inventory_units belongs_to :line_item, class_name: "Spree::LineItem", inverse_of: :inventory_units