Update rails fix GH-19 GH-20