瀏覽代碼

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
     has_paper_trail
     self.table_name = 'products'
-    devise :update,Product
-
     #Thread.current[:current_user] = @current_user
     scope :active, -> { where(ptype: "cent_sale") }
     scope :inactive, -> { where(ptype: "direct_sale") }