From 1dc8a69dce4a0ef9182952cf23f9a60e859e48b4 Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Thu, 2 Jun 2016 16:51:59 +0200 Subject: [PATCH] another inclusion check --- app/models/product_variant.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/product_variant.rb b/app/models/product_variant.rb index 8ed85c33..658f6df0 100644 --- a/app/models/product_variant.rb +++ b/app/models/product_variant.rb @@ -5,4 +5,6 @@ class ProductVariant property :position, type: Fixnum, default: 0 belongs_to :product belongs_to :supplier + + view :by_product_id, key: :product_id end