Remove rails dependency