abiao преди 5 години
родител
ревизия
ca7cf0749b
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      app/models/product.rb

+ 3 - 1
app/models/product.rb

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