diff options
Diffstat (limited to 'activesupport/CHANGELOG')
-rw-r--r-- | activesupport/CHANGELOG | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/activesupport/CHANGELOG b/activesupport/CHANGELOG index ed820edd73..e1d34edb90 100644 --- a/activesupport/CHANGELOG +++ b/activesupport/CHANGELOG @@ -1,10 +1,11 @@ *SVN* -* Added Enumerable#sum for calculating a sum from the elements [DHH]. Examples: +* Added Enumerable#sum for calculating a sum from the elements [DHH, jonathan@daikini.com]. Examples: + [1, 2, 3].sum payments.sum { |p| p.price * p.tax_rate } payments.sum(&:price) - + This is instead of payments.inject(0) { |sum, p| sum + p.price } * Correct and clarify Array#to_sentence docs. #5458 [brad@madriska.com] |