Skip to content

Commit

Permalink
Remove order_stock_locations association
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn committed Apr 4, 2018
1 parent c071f8f commit fe158cd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/app/models/spree/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ def states
has_many :inventory_units, through: :shipments
has_many :cartons, -> { distinct }, through: :inventory_units

has_many :order_stock_locations, class_name: "Spree::OrderStockLocation"
has_many :stock_locations, through: :order_stock_locations

# Adjustments and promotions
has_many :adjustments, -> { order(:created_at) }, as: :adjustable, inverse_of: :adjustable, dependent: :destroy
has_many :line_item_adjustments, through: :line_items, source: :adjustments
Expand Down

0 comments on commit fe158cd

Please sign in to comment.