Explorar el Código

测试 before 事件

abiao hace 5 años
padre
commit
c1f9c8929f
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      app/models/product.rb

+ 1 - 2
app/models/product.rb

@@ -10,8 +10,7 @@ class Product < ActiveRecord::Base
     #after_update :after_update
     before_save :before_save
     after_destroy :del_picture
-    before_filter :do_something
-
+    do_something
     def do_something
         puts params
     end