I was recently working on a many-to-many relations in a Rails project and needed a where condition on has_many X, through: Y but with a where clause on a column on X. In this article, I'll demo that
Share this post
Implementing 'has many through' association…
Share this post
I was recently working on a many-to-many relations in a Rails project and needed a where condition on has_many X, through: Y but with a where clause on a column on X. In this article, I'll demo that