rails4

rails 4 compatibility