Skip to content

Commit

Permalink
Merge pull request #2672 from jhawthorn/remove_order_stock_locations_…
Browse files Browse the repository at this point in the history
…assoc

Remove order_stock_locations association
  • Loading branch information
gmacdougall authored Apr 6, 2018
2 parents 35f2408 + fe158cd commit 0aaa051
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 @@ -82,9 +82,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 0aaa051

Please sign in to comment.