Quellcode durchsuchen

product package function develop

abiao vor 4 Jahren
Ursprung
Commit
5f66a8defe
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      app/models/product_item.rb

+ 1 - 1
app/models/product_item.rb

@@ -3,7 +3,7 @@ class ProductItem < ActiveRecord::Base
   has_paper_trail
   self.table_name = "product_items"
   validates :product_id,:item_id,:nums, presence: true
-  validate :order_validation
+  validate :product_validation
   def product_validation
     if self.product_id > 0
       prd = Product.where("id = ?", self.product_id).first