Replicate error for rails/rails issue #14361