ソースを参照

model add scope

abiao 5 年 前
コミット
d958c01867
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  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]