Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Change on Array extension from rand => random_element [#4555 state:committed] | Santiago Pastorino | 2010-05-16 | 1 | -1/+11 | |
| | | | | Signed-off-by: Xavier Noria <fxn@hashref.com> | |||||
* | Move several configuration values from Hash to ActiveSupport::XmlMini, which ↵ | José Valim | 2010-04-29 | 1 | -15/+18 | |
| | | | | | | both Hash and Array depends on. Also, refactored ActiveModel serializers to just use ActiveSupport::XmlMini.to_tag. As consequence, if a serialized attribute is an array or a hash, it's not encoded as yaml, but as a hash or array. | |||||
* | array.to_xml should be able to handle all types of data elements [#4490 ↵ | Neeraj Singh | 2010-04-29 | 1 | -18/+13 | |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Made arrays of ActiveRecords, and any classes, with namespaces convert to ↵ | mfoster | 2010-04-10 | 1 | -1/+1 | |
| | | | | | | valid xml. [#3824 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Limit Array#extract_options! to directl instances of Hash and HWIA. Add ↵ | wycats | 2010-03-27 | 1 | -1/+16 | |
| | | | | extractable_options? to Hash so that subclasses of Hash can opt-into extractable behavior. This fixes an issue where respond_with wasn't working with subclasses of Hash that were provided by other libraries (such as CouchDB or Mashie) [#4145 state:resolved] | |||||
* | Make many parts of Rails lazy. In order to facilitate this, | wycats | 2010-03-07 | 1 | -1/+0 | |
| | | | | | | | | | | | | add lazy_load_hooks.rb, which allows us to declare code that should be run at some later time. For instance, this allows us to defer requiring ActiveRecord::Base at boot time purely to apply configuration. Instead, we register a hook that should apply configuration once ActiveRecord::Base is loaded. With these changes, brings down total boot time of a new app to 300ms in production and 400ms in dev. TODO: rename base_hook | |||||
* | Remove deprecated behavior since 2.3. | José Valim and Mikel Lindsaar | 2010-01-24 | 1 | -13/+0 | |
| | ||||||
* | Add uniq_by and uniq_by! to Array. | José Valim and Mikel Lindsaar | 2010-01-24 | 1 | -0/+17 | |
| | ||||||
* | Merge docrails | Pratik Naik | 2010-01-17 | 2 | -1/+10 | |
| | ||||||
* | Fix the i18n dependency problem | David Heinemeier Hansson | 2009-12-27 | 1 | -0/+1 | |
| | ||||||
* | Ruby 1.9.2: work around Array allowing method_missing for to_ary | Jeremy Kemper | 2009-11-13 | 1 | -4/+3 | |
| | ||||||
* | Consolidate Object#to_param and #to_query core extensions | Jeremy Kemper | 2009-11-02 | 1 | -16/+0 | |
| | ||||||
* | Array.wrap(struct) needs to return the wrapped struct | Yehuda Katz | 2009-10-28 | 1 | -12/+7 | |
| | ||||||
* | This is all that's needed in 1.8.7+ | Yehuda Katz | 2009-10-28 | 1 | -10/+11 | |
| | ||||||
* | Restore split between require-time and runtime load path mungery. Simplifies ↵ | Jeremy Kemper | 2009-09-24 | 1 | -1/+1 | |
| | | | | vendor requires. | |||||
* | Rollback AS bundler work and improve activation of vendored dependencies | Joshua Peek | 2009-09-13 | 1 | -1/+1 | |
| | ||||||
* | Fix that Hash#to_xml and Array#to_xml shouldn't modify their options hashes ↵ | David Burger | 2009-08-09 | 1 | -0/+1 | |
| | | | | | | [#672 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Merge docrails | Pratik Naik | 2009-07-25 | 1 | -1/+1 | |
| | ||||||
* | Fix dependencies revealed by testing in isolation | Jeremy Kemper | 2009-04-22 | 1 | -1/+5 | |
| | ||||||
* | Convert array extension modules to class reopens | Jeremy Kemper | 2009-03-21 | 5 | -346/+309 | |
| | ||||||
* | * Introduce ActiveSupport.core_ext Integer, %w(conversions time etc) | Jeremy Kemper | 2009-03-21 | 2 | -24/+18 | |
| | | | | | | * Convert some extension modules to simply reopening the class * Remove deprecated Float time extensions * Fold Base64 extension into ActiveSupport::Base64 since stdlib Base64 is gone | |||||
* | Force all internal calls to Array#to_sentence to use English [#2010 ↵ | David Heinemeier Hansson | 2009-02-27 | 1 | -3/+2 | |
| | | | | state:resolved] | |||||
* | 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 |