Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Deprecated warnings for :skip_last_command and :connector of to_sentence ↵ | Guillermo Álvarez | 2009-02-22 | 1 | -5/+19 | |
| | | | | | | [#1847 state:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com> | |||||
* | Array#wrap should use #to_ary so association collections and named scopes ↵ | Will Bryant | 2009-02-10 | 1 | -2/+7 | |
| | | | | | | | | are not re-wrapped [#1935 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Introduce Array.wrap(foo) to wrap the argument in an array unless it's ↵ | Jeremy Kemper | 2009-02-06 | 1 | -0/+19 | |
| | | | | already an array. Wraps nil as an empty array. Use instead of Array(foo) and foo.to_a since they treat String as Enumerable. | |||||
* | Change Array#to_sentence I18n options to pass comma and space character from ↵ | Akira Matsuda | 2008-12-08 | 1 | -9/+10 | |
| | | | | | | | | outside. [#1397 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Lazy-require builder lib | Jeremy Kemper | 2008-11-23 | 1 | -2/+1 | |
| | ||||||
* | Reduced the number of literal aliases to the range that has actually seen ↵ | David Heinemeier Hansson | 2008-11-21 | 1 | -23/+3 | |
| | | | | personal use. With the massive savings in overhead, I was able to fit Array#forty_two | |||||
* | Fixed the option merging in Array#to_xml [#1126 state:resolved] | David Heinemeier Hansson | 2008-10-31 | 1 | -1/+1 | |
| | ||||||
* | Made i18n simple backend able to store false values (and not confuse them ↵ | Tarmo Tänav | 2008-10-09 | 1 | -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 docrails | Pratik Naik | 2008-10-05 | 1 | -9/+9 | |
| | ||||||
* | Merge docrails | Pratik Naik | 2008-09-13 | 1 | -6/+6 | |
| | ||||||
* | Performance: grouping helpers should use yield instead of block as argument. ↵ | miloops | 2008-07-30 | 1 | -5/+5 | |
| | | | | [#723 state:resolved] | |||||
* | Merge docrails changes | Pratik Naik | 2008-07-28 | 1 | -9/+11 | |
| | ||||||
* | merge forward to current rails/master | Sven Fuchs | 2008-07-16 | 2 | -4/+48 | |
|\ | ||||||
| * | Add in_groups to ActiveSupport::CoreExtensions::Array::Grouping. [#579 ↵ | Adrian Mugnolo | 2008-07-15 | 1 | -2/+45 | |
| | | | | | | | | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
| * | Performance: minor Array#to_param and #to_query speedups | Jeremy Kemper | 2008-06-24 | 1 | -2/+3 | |
| | | ||||||
* | | align with changes in i18n | Sven Fuchs | 2008-07-06 | 1 | -4/+1 | |
| | | ||||||
* | | remove core extensions in favor of I18n#translate and I18n#localize | Sven Fuchs | 2008-07-02 | 1 | -1/+1 | |
| | | ||||||
* | | crap, an array never has a request, stupid. | Sven Fuchs | 2008-06-22 | 1 | -1/+1 | |
| | | ||||||
* | | integrating I18n into Rails | Sven Fuchs | 2008-06-19 | 1 | -4/+10 | |
|/ | ||||||
* | Added Array#second through Array#tenth as aliases for Array#[1] through ↵ | David Heinemeier Hansson | 2008-06-17 | 1 | -0/+45 | |
| | | | | Array#[9] [DHH] | |||||
* | Improve documentation coverage and markup | Xavier Noria | 2008-05-02 | 1 | -8/+43 | |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Improve documentation. | Pratik Naik | 2008-04-05 | 5 | -20/+10 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Improve documentation. | Pratik Naik | 2008-03-26 | 2 | -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 Hansson | 2007-12-14 | 1 | -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 Kemper | 2007-12-09 | 1 | -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 Kemper | 2007-12-09 | 1 | -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 Hansson | 2007-12-05 | 1 | -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 Koziarski | 2007-12-02 | 1 | -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 Hansson | 2007-11-27 | 1 | -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 Kemper | 2007-11-17 | 1 | -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 Molina | 2007-11-06 | 1 | -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 Kemper | 2007-10-07 | 1 | -0/+2 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7773 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Missing file from previous patch | David Heinemeier Hansson | 2007-09-15 | 1 | -0/+12 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7490 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Some 1.9 forward compatibility | Jeremy Kemper | 2007-09-14 | 1 | -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 Hansson | 2007-07-24 | 1 | -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 Olson | 2007-06-21 | 1 | -4/+9 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7074 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | revert [6924] | Rick Olson | 2007-06-05 | 1 | -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 Hansson | 2007-06-01 | 1 | -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 Kemper | 2007-05-26 | 1 | -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 Hansson | 2006-12-03 | 1 | -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 Molina | 2006-09-02 | 1 | -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 Kemper | 2006-06-22 | 1 | -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 Kemper | 2006-06-03 | 1 | -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 Hansson | 2006-06-01 | 1 | -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 answer | David Heinemeier Hansson | 2006-06-01 | 1 | -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 Hansson | 2006-05-31 | 2 | -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_xml | Jamis Buck | 2006-03-16 | 1 | -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 Hansson | 2006-03-10 | 1 | -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 Hansson | 2006-03-09 | 1 | -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 Hansson | 2006-03-09 | 1 | -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 |