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

+ 2 - 4
app/models/product.rb

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