Przeglądaj źródła

model add scope

abiao 5 lat temu
rodzic
commit
a011323c7c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/models/product.rb

+ 1 - 1
app/models/product.rb

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