소스 검색

model add scope

abiao 5 년 전
부모
커밋
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]