Has_many :conditions


#1

Hello,

Here is my structure

Node has_many :comments
Comment belongs_to :node

If I specify a :conditions for has_many relationship, I can gather
correct
comments using

n = Node.find(xx)
n.comments

(two queries)

but if I use find(:all, :include=>:comments) then the :conditions is
ignored. All comments belonging to this node is returned. Do I have to
explicitly state :conditions each time I use find? Or am I doing
something
wrong.

Thanks in advance