Actually the code comes from the current version of rails and is not an adding of this PR.