rails4 now  fix #242

Thx to tianlu1677 for bring this up.