Add required inclusion view

This commit is contained in:
2016-06-02 16:45:53 +02:00
parent ca8cc80b22
commit 2aed433685
+1
View File
@@ -24,6 +24,7 @@ class Product
validates :supplier_id, presence: true
validates :price, numericality: true
view :by_supplier_id_and_id, key: [:supplier_id, :_id]
view :by_product_category_id, key: :product_category_id
#after_save :persist_product_category_ids