# Acts\_as\_paranoid and :include

**URL:** <https://www.ruby-forum.com/t/acts-as-paranoid-and-include/54794>\
**Category:** Rails\
**Created:** [March 14, 2006, 11:34am UTC](https://www.ruby-forum.com/t/acts-as-paranoid-and-include/54794 "2006-03-14T11:34:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![icottee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3be4f8/32.png) [@icottee](https://www.ruby-forum.com/u/icottee)\
**Post date:** [March 14, 2006, 11:34am UTC](https://www.ruby-forum.com/t/acts-as-paranoid-and-include/54794/1 "2006-03-14T11:34:33Z")

</div>

Will the find from acts\_as\_paranoid filter down to an :include?

For instance

class parent  
acts\_as\_paranoid  
has\_many: children  
end

and

class child  
acts\_as\_paranoid  
belongs\_to :parent  
end

Then if you

Parent.find(:all, :include =\> children)

you will get all the children if they are deleted or not. I guess the  
find  
that filters out the deleted\_at is null does not filter down to the  
includes  
like this.

---

<div class="post-metadata">

**Author:** ![icottee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3be4f8/32.png) [@icottee](https://www.ruby-forum.com/u/icottee)\
**Post date:** [March 14, 2006, 4:36pm UTC](https://www.ruby-forum.com/t/acts-as-paranoid-and-include/54794/2 "2006-03-14T16:36:23Z")

</div>

On 3/14/06, Ian C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> that filters out the deleted\_at is null does not filter down to the includes  
> like this.
> 
> –  
> Regards,  
> Ian C.

Nope.

has\_many :children, :conditions =\> “deleted\_at IS NULL”

–  
Rick O.  
[http://techno-weenie.net](http://techno-weenie.net)

---

<div class="post-metadata">

**Author:** ![icottee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3be4f8/32.png) [@icottee](https://www.ruby-forum.com/u/icottee)\
**Post date:** [March 16, 2006, 10:45am UTC](https://www.ruby-forum.com/t/acts-as-paranoid-and-include/54794/3 "2006-03-16T10:45:48Z")

</div>

thanks - that would certain fix it 🙂
