Browse Source

model search filter

abiao 5 years ago
parent
commit
5269dfd249
1 changed files with 1 additions and 1 deletions
  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
-            Product = Product.where("id = ?", 1).first
+            scopes [:ptype, "direct_sale"]
 
             filters [:id,:detail,:status,:name]