I love this Rails PR (and the original code it removes).
Some crazy optimisations/shenanigans were introduced but:
Open source done well!