destroy_all so that the callbacks are called

This commit is contained in:
zhitomirskiyi 2011-02-10 19:50:21 -08:00
parent 34e2b657fd
commit 4033c19323

View file

@ -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