rails4 support

rails4 support