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

+ 1 - 1
app/models/product.rb

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