If I have a class that belongs_to two other classes (and each of those has_many of this class), is there an easy way to find the object that belongs to both? eg.
User has_many posts
Article has_many posts
Post belongs_to User and Article
I want the post that belongs to, say, current_user and @article (there will only ever be one post belonging to both in my app)
I could figure out a way to do this but I figure there is an easy rails way to go about it.
Thanks!