Browse Source

model add scope

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

+ 1 - 1
app/models/product.rb

@@ -11,7 +11,7 @@ class Product < ActiveRecord::Base
     after_create :after_create
     before_save :before_save
     after_destroy :del_picture
-    puts current_admin_user
+    puts AdminUser.current_admin_user
     def after_create
         #主商品默认关联商品
         if self.show_flag