Remove hard dependency on rails ~> 3