abiao пре 5 година
родитељ
комит
2419d03928
1 измењених фајлова са 0 додато и 8 уклоњено
  1. 0 8
      app/models/product.rb

+ 0 - 8
app/models/product.rb

@@ -10,14 +10,6 @@ class Product < ActiveRecord::Base
     #after_update :after_update
     before_save :before_save
     after_destroy :del_picture
-    after_commit :do_something
-
-    def do_something
-        puts params
-        puts "1233989898989898989898989"
-    end
-
-
 
     def after_create
         #主商品默认关联商品