浏览代码

model add scope

abiao 5 年之前
父节点
当前提交
2ce6270b31
共有 1 个文件被更改,包括 1 次插入2 次删除
  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]