mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
We want to link variants/products to external DFC SuppliedProducts to trigger supplier orders when local stock is exhausted. This is the first step to enable the link.
9 lines
228 B
Ruby
9 lines
228 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Link a Spree::Variant to an external DFC SuppliedProduct.
|
|
class SemanticLink < ApplicationRecord
|
|
belongs_to :variant, class_name: "Spree::Variant"
|
|
|
|
validates :semantic_id, presence: true
|
|
end
|