abiao лет назад: 4
Родитель
Сommit
5269dfd249
1 измененных файлов с 1 добавлено и 1 удалено
  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]