Forráskód Böngészése

model search filter

abiao 5 éve
szülő
commit
cc9ccd895b
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      app/models/product.rb

+ 1 - 1
app/models/product.rb

@@ -126,7 +126,7 @@ class Product < ActiveRecord::Base
         weight -240
 
         list do
-            scopes [:ptype, "direct_sale"]
+            scopes [ptype, "direct_sale"]
 
             filters [:id,:detail,:status,:name]