Uni Kueri ActiveRecord

Saya telah menulis beberapa pertanyaan kompleks (setidaknya untuk saya) dengan antarmuka kueri Ruby on Rail: watched_news_posts = Post.joins(:news => :watched).where(:watched => {:user_id => id}) watched_topic_posts = Post.joins(:post_topic_relationships => {:topic =>...