abiao 5 anni fa
parent
commit
225677f3c0
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      app/models/product.rb

+ 1 - 0
app/models/product.rb

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