abiao лет назад: 5
Родитель
Сommit
c1f9c8929f
1 измененных файлов с 1 добавлено и 2 удалено
  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