aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/inflector
Commit message (Collapse)AuthorAgeFilesLines
* Add more examples to #titleizePol Llovet2011-07-091-2/+4
|
* Add acronym support to Inflector; Issue #1366David Lee2011-06-112-10/+14
|
* RefactorDavid Lee2011-06-112-91/+143
|
* adds code examples for negative ordinalizeVijay Dev2011-05-081-1/+3
|
* ordinalize negative numbers patchJason2011-05-071-2/+2
| | | | | | | Applied patch by Amir Manji https://github.com/rails/rails/issues/437#issuecomment-1116045 Signed-off-by: Jason <jasonmichaelroth@gmail.com>
* proper reset all inflector scopesStefan Huber2011-04-251-1/+1
|
* Added a word boundary to uncountable inflection regex for #singularize so ↵John Paul Ashenfelter2010-12-221-1/+1
| | | | short inflections like ors do not affect larger words like sponsors [#6093 state:resolved]
* require i18n in transliterate so it can run in isolated situationsJack Dempsey2010-09-141-0/+1
|
* camelize and underscore are sort of inverse of each other, but not in a ↵Xavier Noria2010-07-221-1/+11
| | | | mathematical sense [#5174 state:resolved]
* Use multibyte proxy class on 1.9, refactor Unicode.Norman Clarke2010-05-211-2/+3
| | | | | | | | | | Makes String#mb_chars on Ruby 1.9 return an instance of ActiveSupport::Multibyte::Chars to work around 1.9's lack of Unicode case folding. Refactors class methods from ActiveSupport::Multibyte::Chars into new Unicode module, adding other related functionality for consistency. [#4594 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* fixes colon in previous YAML exampleXavier Noria2010-05-031-1/+1
|
* Fix transliteration rule example in docs. [#4526 state:resolved]Norman Clarke2010-05-031-2/+3
| | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
* Delegate Inflector.transliterate to i18n. [#4508 state:resolved]Norman Clarke2010-04-301-38/+56
| | | | | | | Ancillary changes: Moved Chars#normalize into a class method; removed unused UTF_PAT constant. Signed-off-by: José Valim <jose.valim@gmail.com>
* Improve reliability of Inflector.transliterate. [#4374 state:resolved]Norman Clarke2010-04-121-24/+37
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Avoid unnecessary allocations in Inflector.underscore [#3626 state:resolved]Joe Van Dyk2010-04-121-5/+7
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Changed the way inflections for uncountables work for 'funky jeans' [#3576 ↵Rolf Bjaanes2010-04-051-1/+1
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Parameterize should accept malformed utf8 characters [#4323 state:resolved]Kristopher Murata2010-04-041-1/+4
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Any reason we can't just use the slow 1.8 path for transliteration in 1.9?wycats2010-03-171-2/+2
|
* Removed the + sign as an accepted character from the parameterize method, as ↵Stijn Mathysen2010-03-051-1/+1
| | | | | | | | a + sign is interpreted by the browser as a space, possibly resulting in a "ArgumentError: illegal character in key" [#4080 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Avoid calling triggering const_missing if const_missing is private when ↵Carl Lerche2010-02-181-1/+1
| | | | doing constantize
* Remove string access core extension dependencyJeremy Kemper2009-11-091-3/+1
|
* Break up inflector to reduce the dependency burden on dependency-les methods ↵Yehuda Katz2009-11-073-0/+413
like constantize.