mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
Fix stock_movements relation in variant
This commit is contained in:
@@ -38,7 +38,7 @@ module Spree
|
||||
|
||||
has_many :stock_items, dependent: :destroy, inverse_of: :variant
|
||||
has_many :stock_locations, through: :stock_items
|
||||
has_many :stock_movements, dependent: :destroy
|
||||
has_many :stock_movements, through: :stock_items, dependent: :destroy
|
||||
has_many :images, -> { order(:position) }, as: :viewable,
|
||||
dependent: :destroy,
|
||||
class_name: "Spree::Image"
|
||||
|
||||
Reference in New Issue
Block a user