continuing the refactor of the admin section
This commit is contained in:
@@ -9,6 +9,7 @@ class ProductCategory
|
||||
|
||||
attr_protected :supplier_id
|
||||
|
||||
validates :name, presence: true
|
||||
validates :position, numericality: true
|
||||
validates :supplier_id, presence: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user