big refactor for test and admin namespace

This commit is contained in:
2012-12-04 18:45:18 +01:00
parent 7d64ab2022
commit d8eef4a047
85 changed files with 1403 additions and 1272 deletions
+2
View File
@@ -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)