It is not out of date.
Ruby before 1.8.7 did not have a built-in group_by , so the rails added it. Ruby 1.8.7 added group_by, but while group_by rails returned ordered hashes, rubies 1.8.7 returned simple hashes (since ordered hashes were not in Ruby 1.8.7 yet), so the rails continued to overwrite the method.
Ruby 1.9 had group_by , so the rails no longer needed to be rewritten, but this code remained for people still running 1.8.7.
Rails 4 reduced compatibility with Ruby 1.8.7, so code like this was removed from the rails. It is not deprecated, but is no longer on the rails because it has become part of the ruby ββstandard library.
source share