abiao лет назад: 4
Родитель
Сommit
947c1cfd83
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      app/models/product.rb

+ 1 - 2
app/models/product.rb

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