aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/array/conversions.rb
Commit message (Collapse)AuthorAgeFilesLines
* fix broken format in Array#to_sentence [ci skip]Francesco Rodriguez2013-04-041-3/+5
|
* prefer american spelling of 'behavior'Gosha Arinich2013-01-071-1/+1
|
* Replace comments' non-breaking spaces with spacesclaudiob2012-12-041-3/+3
| | | | | | | | | | Sometimes, on Mac OS X, programmers accidentally press Option+Space rather than just Space and don’t see the difference. The problem is that Option+Space writes a non-breaking space (0XA0) rather than a normal space (0x20). This commit removes all the non-breaking spaces inadvertently introduced in the comments of the code.
* Use `tag!` instead of `method_missing` in `to_xml` conversions.Nikita Afanasenko2012-11-041-3/+3
| | | | Since version `3.0.x` `Builder` caches method passed to `method_missing` each time. This commit replaces `method_missing` call with `tag!` call to prevent method redefinition on each `to_xml` call with the same builder.
* let (array|hash)/conversions.rb load the extensions in ↵Xavier Noria2012-10-091-0/+2
| | | | object/to_(param|query).rb
* update AS/core_ext docs [ci skip]Francesco Rodriguez2012-09-121-3/+3
|
* Ensure Array#to_sentence does not modify given hashCarlos Antonio da Silva2012-06-261-8/+3
| | | | | Also simplify I18n logic for Array#to_sentence, doing only one lookup for all keys and using merge!, instead of one lookup for each option key.
* some copy edits [ci skip]Vijay Dev2012-05-301-4/+4
|
* Updates Array conversions method documentations and clean upsAlvaro Pereyra2012-05-281-4/+0
|
* fix empty lines [ci skip]Francesco Rodriguez2012-05-281-1/+0
|
* Merge branch 'master' of github.com:lifo/docrailsAlvaro Pereyra2012-05-281-4/+52
|\
| * add :locale option to Array#to_sentence documentation [ci skip]Francesco Rodriguez2012-05-281-0/+27
| |
| * add examples to Array#to_sentence [ci skip]Francesco Rodriguez2012-05-281-4/+24
| |
* | Updates documentation with cleaner examples and texts [ci skip]Alvaro Pereyra2012-05-281-1/+14
| |
* | Remove blank trailing commentsHenrik Hodne2012-05-201-1/+0
|/ | | | | | | For future reference, this is the regex I used: ^\s*#\s*\n(?!\s*#). Replace with the first match, and voilà! Note that the regex matches a little bit too much, so you probably want to `git add -i .` and go through every single diff to check if it actually should be changed.
* AS core_ext refactoring pt.2Alexey Gaziev2012-04-291-44/+50
|
* AS core_ext refactoringAlexey Gaziev2012-04-291-1/+1
|
* Fixed misleading docs for String#to_formatted_s(:db)Martin Svalin2011-10-201-3/+3
|
* use new AR calls in examplesVijay Dev2011-05-071-2/+2
|
* to_sentence should return a duplicateMatthew Mongeau2010-08-171-1/+1
|
* polishing commentsNeeraj Singh2010-07-261-5/+5
|
* Unforce builder from ASSantiago Pastorino2010-06-011-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Unforce i18n from ASSantiago Pastorino2010-05-311-3/+9
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Move several configuration values from Hash to ActiveSupport::XmlMini, which ↵José Valim2010-04-291-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 Singh2010-04-291-18/+13
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Made arrays of ActiveRecords, and any classes, with namespaces convert to ↵mfoster2010-04-101-1/+1
| | | | | | valid xml. [#3824 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Make many parts of Rails lazy. In order to facilitate this,wycats2010-03-071-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 Lindsaar2010-01-241-13/+0
|
* Fix the i18n dependency problemDavid Heinemeier Hansson2009-12-271-0/+1
|
* Consolidate Object#to_param and #to_query core extensionsJeremy Kemper2009-11-021-16/+0
|
* Restore split between require-time and runtime load path mungery. Simplifies ↵Jeremy Kemper2009-09-241-1/+1
| | | | vendor requires.
* Rollback AS bundler work and improve activation of vendored dependenciesJoshua Peek2009-09-131-1/+1
|
* Fix that Hash#to_xml and Array#to_xml shouldn't modify their options hashes ↵David Burger2009-08-091-0/+1
| | | | | | [#672 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Merge docrailsPratik Naik2009-07-251-1/+1
|
* Fix dependencies revealed by testing in isolationJeremy Kemper2009-04-221-1/+5
|
* Convert array extension modules to class reopensJeremy Kemper2009-03-211-179/+167
|
* Force all internal calls to Array#to_sentence to use English [#2010 ↵David Heinemeier Hansson2009-02-271-3/+2
| | | | state:resolved]
* Deprecated warnings for :skip_last_command and :connector of to_sentence ↵Guillermo Álvarez2009-02-221-5/+19
| | | | | | [#1847 state:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Change Array#to_sentence I18n options to pass comma and space character from ↵Akira Matsuda2008-12-081-9/+10
| | | | | | | | outside. [#1397 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Lazy-require builder libJeremy Kemper2008-11-231-2/+1
|
* 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 forward to current rails/masterSven Fuchs2008-07-161-2/+3
|\
| * 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
|/
* Improve documentation coverage and markupXavier Noria2008-05-021-8/+43
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Improve documentation.Pratik Naik2008-04-051-6/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de