I am using Rails 2.3.10. I have models called Stream, Buzz, and BuzzDigest. There is an association, buzz has_many :streams. There is another association, buzz has_one :digest. Sometimes, buzz.digest is nil. How do I write a query for Stream that would filter out streams where the stream's buzz's digest is nil?
This isn't correct syntax, but might be close to what I want:
Stream.find( :all, :conditions => "buzz_id.digest IS NOT NULL" )