Fix rails support