Fix Rails 4.2 conditional

I made a mistake in #103 which meant that Rails 4.2.0.rc1 was still accessing the deprecated codepath. This PR fixes that mistake, and the spec.