aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/array/grouping.rb
Commit message (Collapse)AuthorAgeFilesLines
* Simplify Array#in_groups_of codeAkira Matsuda2013-07-101-3/+1
|
* Speed up Array#splitAkira Matsuda2013-07-101-6/+20
| | | | | | | Benchmark: user system total real old 0.510000 0.000000 0.510000 ( 0.506749) new 0.330000 0.000000 0.330000 ( 0.336187)
* Use faster Array.new instead of []*paddingVipul A M2013-05-021-1/+1
|
* Simplify (and optimize)Marc-Andre Lafortune2012-11-161-3/+3
|
* Use Integer#div instead of Integer#/ to avoid side effects from mathnMarc-Andre Lafortune2012-11-161-1/+1
|
* update AS/core_ext docs [ci skip]Francesco Rodriguez2012-09-121-2/+2
|
* Update examples of Array #in_groups and #in_groups_ofAlexey Vakhov2012-05-251-10/+13
| | | | | Examples should be not square to visually underline a difference between Array#in_groups and Array#in_groups_of.
* AS core_ext refactoring pt.2Alexey Gaziev2012-04-291-4/+2
|
* requiring enumerator is not nessessary in ruby 1.9Sergey Nartimov2011-12-201-2/+0
|
* Fix a bunch of minor spelling mistakesEvgeniy Dolzhenko2010-06-111-1/+1
|
* Convert array extension modules to class reopensJeremy Kemper2009-03-211-93/+87
|
* Merge docrailsPratik Naik2008-09-131-6/+6
|
* Performance: grouping helpers should use yield instead of block as argument. ↵miloops2008-07-301-5/+5
| | | | [#723 state:resolved]
* Add in_groups to ActiveSupport::CoreExtensions::Array::Grouping. [#579 ↵Adrian Mugnolo2008-07-151-2/+45
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Improve documentation.Pratik Naik2008-04-051-8/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improve documentation.Pratik Naik2008-03-261-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9093 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Clarify Array#in_groups_of implementation, don't dup unless needed, only ↵Jeremy Kemper2007-11-171-7/+20
| | | | | | require enumerator once. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8161 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't pad remaining places with in_groups_of if specified padding value is ↵Marcel Molina2006-09-021-2/+11
| | | | | | false. [Marcel Molina Jr.] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4900 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Array#to_s(:db) that'll produce a comma-separated list of ids [DHH] ↵David Heinemeier Hansson2006-05-311-0/+46
Split Grouping into its own file git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4387 5ecf4fe2-1ee6-0310-87b1-e25e094e27de