Fix overly pessimistic dependency on Rails