Adding support for Rails ~>4.0 via #references call