destroy_all so that the callbacks are called
This commit is contained in:
parent
34e2b657fd
commit
4033c19323
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ class Post < ActiveRecord::Base
|
||||||
has_many :comments, :order => 'created_at ASC', :dependent => :destroy
|
has_many :comments, :order => 'created_at ASC', :dependent => :destroy
|
||||||
has_many :post_visibilities
|
has_many :post_visibilities
|
||||||
has_many :aspects, :through => :post_visibilities
|
has_many :aspects, :through => :post_visibilities
|
||||||
has_many :mentions, :dependent => :delete_all
|
has_many :mentions, :dependent => :destroy_all
|
||||||
belongs_to :person
|
belongs_to :person
|
||||||
|
|
||||||
cattr_reader :per_page
|
cattr_reader :per_page
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue