Rails Issue #4564