Add required inclusion view
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user