Explorar el Código

model add scope

abiao hace 4 años
padre
commit
d4333a7d80
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  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]