rails4

Rails 4 compability