Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Array#in_groups: documentation updated #12841

merged 1 commit into from

2 participants


No description provided.


Thank you for your contribution :yellow_heart:. For further documentation patches please make sure to add [ci skip] to the commit message. This will skip the Travis build.

@senny senny merged commit d17e79b into rails:master

1 check failed

Details default The Travis CI build failed
@kuldeepaggarwal kuldeepaggarwal deleted the kuldeepaggarwal:in-group-documentation branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 11, 2013
  1. @kuldeepaggarwal
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  activesupport/lib/active_support/core_ext/array/grouping.rb
2  activesupport/lib/active_support/core_ext/array/grouping.rb
@@ -53,7 +53,7 @@ def in_groups_of(number, fill_with = nil)
# ["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
Something went wrong with that request. Please try again.