Remove dependency on rails 3.0.