Quellcode durchsuchen

model add scope

abiao vor 4 Jahren
Ursprung
Commit
d4333a7d80
1 geänderte Dateien mit 1 neuen und 3 gelöschten Zeilen
  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]