Should probably patch rails
Should probably commit this