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
One way is to write the LEFT JOIN clause yourself by using joins:
Person.joins('LEFT JOIN "notes" ON "notes"."person_id" = "people.id" AND "notes"."important" IS "t"')
Not pretty, though.