Fix rails dependency.