aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/array
Commit message (Collapse)AuthorAgeFilesLines
* Fixed the option merging in Array#to_xml [#1126 state:resolved]David Heinemeier Hansson2008-10-311-1/+1
|
* Made i18n simple backend able to store false values (and not confuse them ↵Tarmo Tänav2008-10-091-1/+2
| | | | | | | | | with nil or lack of value) Implemented support.array.skip_last_comma i18n key for Array#to_sentence, this also tests the ability to store false. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Merge docrailsPratik Naik2008-10-051-9/+9
|
* 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]
* Merge docrails changesPratik Naik2008-07-281-9/+11
|
* merge forward to current rails/masterSven Fuchs2008-07-162-4/+48
|\
| * 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>
| * Performance: minor Array#to_param and #to_query speedupsJeremy Kemper2008-06-241-2/+3
| |
* | align with changes in i18nSven Fuchs2008-07-061-4/+1
| |
* | remove core extensions in favor of I18n#translate and I18n#localizeSven Fuchs2008-07-021-1/+1
| |
* | crap, an array never has a request, stupid.Sven Fuchs2008-06-221-1/+1
| |
* | integrating I18n into RailsSven Fuchs2008-06-191-4/+10
|/
* Added Array#second through Array#tenth as aliases for Array#[1] through ↵David Heinemeier Hansson2008-06-171-0/+45
| | | | Array#[9] [DHH]
* Improve documentation coverage and markupXavier Noria2008-05-021-8/+43
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Improve documentation.Pratik Naik2008-04-055-20/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improve documentation.Pratik Naik2008-03-262-5/+58
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9093 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that Array#to_param calls to_param on all it's elements (closes ↵David Heinemeier Hansson2007-12-141-2/+2
| | | | | | #10473) [brandon] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8384 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move #to_query methods where they ought to belong. Closes #10395 [Chu Yeow]Jeremy Kemper2007-12-091-0/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8343 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* to_sentence returns self[0].to_s instead of just self[0] for arrays of ↵Jeremy Kemper2007-12-091-1/+1
| | | | | | length 1. Closes #10390 [Chu Yeow, mrj] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8340 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix typos (closes #10378)David Heinemeier Hansson2007-12-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix potential extra space in Array#to_sentence. Closes #10327 [kamal]Michael Koziarski2007-12-021-6/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8251 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Array#from and Array#to that behaves just from String#from and ↵David Heinemeier Hansson2007-11-271-0/+28
| | | | | | String#to [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8224 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
* Standardize on using hyphens rather than colons to separate option names ↵Marcel Molina2007-11-061-2/+2
| | | | | | from their explanation in documentation. Replace + with tt tags. Closes #8732. [ryanb] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8106 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* String#to_xs uses the fast_xs extension if available for Builder speedup.Jeremy Kemper2007-10-071-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7773 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Missing file from previous patchDavid Heinemeier Hansson2007-09-151-0/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7490 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Some 1.9 forward compatibilityJeremy Kemper2007-09-141-5/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7474 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Array#extract_options! to encapsulate the pattern of getting an ↵David Heinemeier Hansson2007-07-241-0/+19
| | | | | | options hash out of a variable number of parameters (closes #8759) [norbert] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7217 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added proper handling of arrays. Closes #8537 [hasmanyjosh]Rick Olson2007-06-211-4/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7074 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* revert [6924]Rick Olson2007-06-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6946 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added proper handling of arrays (closes #8537) [hasmanyjosh]David Heinemeier Hansson2007-06-011-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6924 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Array#to_xml yields the builder just like Hash and ActiveRecord::Base. ↵Jeremy Kemper2007-05-261-1/+4
| | | | | | Closes #8472. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6858 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed Array#to_xml when it contains a series of hashes (each piece would get ↵David Heinemeier Hansson2006-12-031-2/+2
| | | | | | its own XML declaration) (closes #6610) [thkarcher/cyu] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5668 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
* Correct and clarify Array#to_sentence docs. Closes #5458.Jeremy Kemper2006-06-221-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4485 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* to_xml fixes, features, and speedup. Closes #4989.Jeremy Kemper2006-06-031-2/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4413 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that Base.find :all, :conditions => [ "id IN (?)", collection ] would ↵David Heinemeier Hansson2006-06-011-1/+1
| | | | | | fail if collection was empty [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4390 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Oracle and others wont take a string null for an answerDavid Heinemeier Hansson2006-06-011-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4389 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Array#to_s(:db) that'll produce a comma-separated list of ids [DHH] ↵David Heinemeier Hansson2006-05-312-0/+64
| | | | | | Split Grouping into its own file git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4387 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* dasherize the root element when doing to_xmlJamis Buck2006-03-161-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3901 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* tag! is nicer than __send__David Heinemeier Hansson2006-03-101-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3833 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Implemented nested to_xml and named elements for array xmling [DHH]David Heinemeier Hansson2006-03-091-5/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3830 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed to_xml across the board to use nice indention, better skip_attributes ↵David Heinemeier Hansson2006-03-091-3/+8
| | | | | | workings, no type on strings, and cleaned tests [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3829 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* reverted #to_sentence to use red, green, and blue styleTobias Lütke2006-03-081-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3816 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Hash#to_xml and Array#to_xml that makes it much easier to produce XML ↵David Heinemeier Hansson2006-03-081-1/+6
| | | | | | from basic structures [DHH] Moved Jim Weirich's wonderful Builder from Action Pack to Active Support (it's simply too useful to be stuck in AP) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3812 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* changed default of Array#to_sentence to use one, two and three notation ( ↵Tobias Lütke2006-03-061-2/+2
| | | | | | skip_last_comma => true ) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3802 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that Array#to_sentence will return "" on an empty array instead of ", ↵David Heinemeier Hansson2006-03-021-0/+2
| | | | | | and" (closes #3842, #4031) [rubyonrails@beautifulpixel.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3739 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Pull out Array#to_strings in favor of more general Symbol#to_proc.Marcel Molina2005-11-211-3/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3119 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Array#to_strings which to_s's all elements in an array.Marcel Molina2005-11-201-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3114 5ecf4fe2-1ee6-0310-87b1-e25e094e27de