Rails issue 7824