Fix crash due to removal of #reflections rails4.1

See https://github.com/rails/rails/pull/15300