Example app to demonstrate this Rails issue: https://github.com/rails/rails/issues/10685