Is there a way to perform .includes and specify an outer left join.
Originally:
@post = Post.includes(:comments).where("comments.spam = ?", false).where(:id => params[:id]).first
@comments = post.comments
The desire is to mimic:
@post = Post.find(params[:id])
@comments = post.comments.where(:spam => false)
Except using includes would perform it in an eager loading fashion (if say I had multiple posts).
Thanks for the help in advanced. Justin