ソースを参照

model add scope

abiao 4 年 前
コミット
d4333a7d80
共有1 個のファイルを変更した1 個の追加3 個の削除を含む
  1. 1 3
      app/models/product.rb

+ 1 - 3
app/models/product.rb

@@ -139,9 +139,7 @@ class Product < ActiveRecord::Base
             end
 
             puts strs
-            if strs.length==0
-                scopes [:inactive]
-            end
+
 
             filters [:id,:detail,:status,:name]