making rails 4.0.0beta compatible