rails/rails — pull request #15980 by sgrif (2014-06-29 20:55:47+00:00)
Title: Backport `Enumerable#to_h` on platforms which do not support it

This adds `to_h` to all classes that support it in Ruby 2.1. It will not
override Ruby's definition on 2.1 and later.