Is is possible in Rails > 3.2 to add conditions to the join statement generated by the includes method?
includes
Let\'s say I have two models, Person and Note. E
Rails 5+ syntax:
Person.includes(:notes).where(notes: {important: true})
Nested:
Person.includes(notes: [:grades]).where(notes: {important: true, grades: {important: true})