Loosen up dependency on rails 4.0.0