From 4033c19323e4f3044a126ddab21c0ebc0bcd9166 Mon Sep 17 00:00:00 2001 From: zhitomirskiyi Date: Thu, 10 Feb 2011 19:50:21 -0800 Subject: [PATCH] destroy_all so that the callbacks are called --- app/models/post.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/post.rb b/app/models/post.rb index 98671c505..b72659ed9 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -17,7 +17,7 @@ class Post < ActiveRecord::Base has_many :comments, :order => 'created_at ASC', :dependent => :destroy has_many :post_visibilities has_many :aspects, :through => :post_visibilities - has_many :mentions, :dependent => :delete_all + has_many :mentions, :dependent => :destroy_all belongs_to :person cattr_reader :per_page