diff --git a/activesupport/CHANGELOG b/activesupport/CHANGELOG index 9ea01ada2e6df512825801b0ac2b17246aa80cca..26286cecfb9842a448d9879bd9bef3819bebb9f0 100644 --- a/activesupport/CHANGELOG +++ b/activesupport/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Expose methods added to Enumerable in the documentation, such as group_by. Closes #6170. [sergeykojin@gmail.com, Marcel Molina Jr.] + * Ensure Chars#tidy_bytes only tidies broken bytes. Closes #6397 [Manfred Stienstra] * Add 'unloadable', a method used to mark any constant as requiring an unload after each request. [Nicholas Seckar] diff --git a/activesupport/lib/active_support/core_ext/enumerable.rb b/activesupport/lib/active_support/core_ext/enumerable.rb index 59128007df35d41b5264f5c6e3e20fb92c37eff8..93372bb4d5fa5064dd691a65b61a292db4baebda 100644 --- a/activesupport/lib/active_support/core_ext/enumerable.rb +++ b/activesupport/lib/active_support/core_ext/enumerable.rb @@ -1,4 +1,4 @@ -module Enumerable #:nodoc: +module Enumerable # Collect an enumerable into sets, grouped by the result of a block. Useful, # for example, for grouping records by date. # @@ -19,7 +19,7 @@ def group_by (groups[yield(element)] ||= []) << element groups end - end + end if RUBY_VERSION < '1.9' # Calculates a sum from the elements. Examples: #