Explorar o código

model add scope

abiao %!s(int64=5) %!d(string=hai) anos
pai
achega
91898bfe08
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      app/models/product.rb

+ 0 - 1
app/models/product.rb

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