abiao преди 5 години
родител
ревизия
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