Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added :fallback_string option to Array#to_sentence | oss92 | 2016-07-13 | 1 | -2/+8 |
| | |||||
* | Added Examples in docs for internal behavior of Array#to_formatted_s [ci skip] | Ronak Jangir | 2015-09-19 | 1 | -1/+3 |
| | |||||
* | Correct ArgumentError message in ActiveSupport conversions docs [ci skip] | amitkumarsuroliya | 2015-09-18 | 1 | -1/+1 |
| | | | This was happened after this commit https://github.com/rails/rails/commit/2ebf47aea21ff8ac10681e53e78dd7a0e5c31c6e | ||||
* | Make sure Array#to_sentence always returns a String | David Cornu | 2015-03-23 | 1 | -1/+1 |
| | |||||
* | Pass symbol as an argument instead of a block | Erik Michaels-Ober | 2014-11-29 | 1 | -1/+1 |
| | |||||
* | Revert "remove unnecssary require of `to_param`, as `to_query` is already ↵ | Rafael Mendonça França | 2014-06-11 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | require `to_param`" Revert "No need to require to_param, it is already required in to_query.rb" This reverts commits ccdd97662e1fb00c23c90d59f65c091904959561 and d697ee14264a90a39cdbe87857656d8b314ac9b7. Reason by @jeremy: These requires are not for implementation dependency. They ensure that requiring array conversions provides to_query, to_param, and other array conversion behaviors. The fact that to_query is implemented in terms of to_param is just a coincidence. If to_query removed its to_param require, then someone requiring array conversions would no longer have to_param available. This change removes these intentional dependencies on to_param in favor of implementation side effects—an undesirable move that's susceptible to regression. | ||||
* | remove unnecssary require of `to_param`, as `to_query` is already require ↵ | Kuldeep Aggarwal | 2014-06-12 | 1 | -1/+0 |
| | | | | `to_param` | ||||
* | Array#to_formatted_s does not call each element's to_s anymore | Akira Matsuda | 2013-07-11 | 1 | -17/+2 |
| | | | | Array#to_s calls each element's inspect since ruby 1.9 | ||||
* | fix broken format in Array#to_sentence [ci skip] | Francesco Rodriguez | 2013-04-04 | 1 | -3/+5 |
| | |||||
* | prefer american spelling of 'behavior' | Gosha Arinich | 2013-01-07 | 1 | -1/+1 |
| | |||||
* | Replace comments' non-breaking spaces with spaces | claudiob | 2012-12-04 | 1 | -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 Afanasenko | 2012-11-04 | 1 | -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 Noria | 2012-10-09 | 1 | -0/+2 |
| | | | | object/to_(param|query).rb | ||||
* | update AS/core_ext docs [ci skip] | Francesco Rodriguez | 2012-09-12 | 1 | -3/+3 |
| | |||||
* | Ensure Array#to_sentence does not modify given hash | Carlos Antonio da Silva | 2012-06-26 | 1 | -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 Dev | 2012-05-30 | 1 | -4/+4 |
| | |||||
* | Updates Array conversions method documentations and clean ups | Alvaro Pereyra | 2012-05-28 | 1 | -4/+0 |
| | |||||
* | fix empty lines [ci skip] | Francesco Rodriguez | 2012-05-28 | 1 | -1/+0 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Alvaro Pereyra | 2012-05-28 | 1 | -4/+52 |
|\ | |||||
| * | add :locale option to Array#to_sentence documentation [ci skip] | Francesco Rodriguez | 2012-05-28 | 1 | -0/+27 |
| | | |||||
| * | add examples to Array#to_sentence [ci skip] | Francesco Rodriguez | 2012-05-28 | 1 | -4/+24 |
| | | |||||
* | | Updates documentation with cleaner examples and texts [ci skip] | Alvaro Pereyra | 2012-05-28 | 1 | -1/+14 |
| | | |||||
* | | Remove blank trailing comments | Henrik Hodne | 2012-05-20 | 1 | -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.2 | Alexey Gaziev | 2012-04-29 | 1 | -44/+50 |
| | |||||
* | AS core_ext refactoring | Alexey Gaziev | 2012-04-29 | 1 | -1/+1 |
| | |||||
* | Fixed misleading docs for String#to_formatted_s(:db) | Martin Svalin | 2011-10-20 | 1 | -3/+3 |
| | |||||
* | use new AR calls in examples | Vijay Dev | 2011-05-07 | 1 | -2/+2 |
| | |||||
* | to_sentence should return a duplicate | Matthew Mongeau | 2010-08-17 | 1 | -1/+1 |
| | |||||
* | polishing comments | Neeraj Singh | 2010-07-26 | 1 | -5/+5 |
| | |||||
* | Unforce builder from AS | Santiago Pastorino | 2010-06-01 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Unforce i18n from AS | Santiago Pastorino | 2010-05-31 | 1 | -3/+9 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.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> | ||||
* | 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 |
| | |||||
* | Fix the i18n dependency problem | David Heinemeier Hansson | 2009-12-27 | 1 | -0/+1 |
| | |||||
* | Consolidate Object#to_param and #to_query core extensions | Jeremy Kemper | 2009-11-02 | 1 | -16/+0 |
| | |||||
* | 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 | 1 | -179/+167 |
| | |||||
* | 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> | ||||
* | 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 |
| | |||||
* | 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> |