Browse Source

model add scope

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

+ 1 - 2
app/models/product.rb

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