added a call to #references when building an ActiveRelation in order for :include to work well with Rails 4