Skip to content

Commit

Permalink
Add acts_as_list to Spree::StockLocation
Browse files Browse the repository at this point in the history
Fixes #2952.

Signed-off-by: Rémy Coutable <remy@rymai.me>
  • Loading branch information
rymai committed Nov 16, 2018
1 parent 800d3bd commit fd22315
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/app/models/spree/stock_location.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ module Spree
class StockLocation < Spree::Base
class InvalidMovementError < StandardError; end

acts_as_list

has_many :shipments
has_many :stock_items, dependent: :delete_all, inverse_of: :stock_location
has_many :cartons, inverse_of: :stock_location
Expand Down

0 comments on commit fd22315

Please sign in to comment.