From 8e5b6e68531206e3173eceb26bc5a722f790db86 Mon Sep 17 00:00:00 2001 From: KD Date: Mon, 11 Nov 2013 11:46:20 +0530 Subject: Array#in_groups: documentation updated --- activesupport/lib/active_support/core_ext/array/grouping.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support') diff --git a/activesupport/lib/active_support/core_ext/array/grouping.rb b/activesupport/lib/active_support/core_ext/array/grouping.rb index 37f007c751..80bbee97da 100644 --- a/activesupport/lib/active_support/core_ext/array/grouping.rb +++ b/activesupport/lib/active_support/core_ext/array/grouping.rb @@ -53,7 +53,7 @@ class Array # ["4", "5"] # ["6", "7"] def in_groups(number, fill_with = nil) - # size / number gives minor group size; + # size.div number gives minor group size; # size % number gives how many objects need extra accommodation; # each group hold either division or division + 1 items. division = size.div number -- cgit v1.2.3