A failing spec for the issue introduced when support in references.
Only use references (and includes), if there is something to do.
AR will use an outer join even if references(nil) is used, which causes the association’s scope to fail.
General fun with 1.8.7 syntax support.
Make sure we keep building the relation and pass it back.
Fix specs from colliding with each other.
This is not the best solution, but too much work needs to be done to isolate these specs properly so I’ll delegate that to a different PR. In the meantime this keeps them separate and properly tests the functionality.
Update the change log.
[ci skip]
Merge branch 'feature/fix_ar4_references' into develop