Tested against rails 4.2.0.rc3