소스 검색

model add scope

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

+ 0 - 2
app/models/product.rb

@@ -2,8 +2,6 @@
 class Product < ActiveRecord::Base
 class Product < ActiveRecord::Base
     has_paper_trail
     has_paper_trail
     self.table_name = 'products'
     self.table_name = 'products'
-    devise :update,Product
-
     #Thread.current[:current_user] = @current_user
     #Thread.current[:current_user] = @current_user
     scope :active, -> { where(ptype: "cent_sale") }
     scope :active, -> { where(ptype: "cent_sale") }
     scope :inactive, -> { where(ptype: "direct_sale") }
     scope :inactive, -> { where(ptype: "direct_sale") }