Browse Source

model add scope

abiao 5 years ago
parent
commit
d958c01867
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/models/product.rb

+ 1 - 1
app/models/product.rb

@@ -127,7 +127,7 @@ class Product < ActiveRecord::Base
         weight -240
 
         list do
-            puts current_admin_user.id
+            puts self.current_admin_user.id
             scopes [:inactive]
 
             filters [:id,:detail,:status,:name]