소스 검색

model add scope

abiao 5 년 전
부모
커밋
1dbadd74e6
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      app/models/product.rb

+ 0 - 1
app/models/product.rb

@@ -2,7 +2,6 @@
 class Product < ActiveRecord::Base
     has_paper_trail
     self.table_name = 'products'
-    before_filter :authenticate_admin_user!
 
     scope :active, -> { where(ptype: "cent_sale") }
     scope :inactive, -> { where(ptype: "direct_sale") }