Tested against Rails 4.2.0rc1