Quellcode durchsuchen

model add scope

abiao vor 4 Jahren
Ursprung
Commit
e0fe840a07
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      app/models/product.rb

+ 1 - 1
app/models/product.rb

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