has_many with nullable foreign_key?

Joe Ruby MUDCRAP-CE
2006-10-27T00:47:45Z

Is there a way to use has_many and have it operate like such?

select * from pages where site_id = #{id} or site_id is null

I know there''s finder_sql, but then I''ll lose the
find_in_collection
goodness.


Thanks,
Joe

--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---