Fix rails dependency