big refactor for test and admin namespace
This commit is contained in:
@@ -11,6 +11,8 @@ class Product
|
||||
has_many :product_orders
|
||||
|
||||
validates :supplier_id, presence: true
|
||||
validates :price, presence: true, numericality: true
|
||||
|
||||
after_save :persist_product_category_ids
|
||||
|
||||
def product_category_ids=(ids)
|
||||
|
||||
Reference in New Issue
Block a user