Apply fix for Rails issue #5824