Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | revises the regexp used in titleize | Xavier Noria | 2012-04-07 | 1 | -1/+1 |
| | | | | | | | | | The regexp used in titleize matches saxon genitive and other contractions, only to call capitalize on the captured text and have the apostrophe upcased which yields the apostrophe itself. It is more clear that the regexp matches just what it has to match. | ||||
* | Updated/changed useless tr/gsubs | Jurriaan Pruis | 2012-04-03 | 1 | -1/+1 |
| | |||||
* | Fix typo | Artyom Bolshakov | 2012-04-03 | 1 | -1/+1 |
| | |||||
* | String#titleize works properly with smart quotes, closes #5584 | Vasiliy Ermolovich | 2012-03-26 | 1 | -2/+4 |
| | |||||
* | Inflector/constantize - inject method lets us to avoid using another variable | homa | 2012-02-28 | 1 | -5/+3 |
| | |||||
* | prefer tr to gsub for replacing characters | Xavier Noria | 2012-02-12 | 1 | -2/+2 |
| | |||||
* | inflection regexp are meant to be applied once | Xavier Noria | 2012-02-12 | 1 | -2/+2 |
| | |||||
* | removes redundant argument | Xavier Noria | 2012-02-12 | 1 | -1/+1 |
| | |||||
* | boosts inflections | Xavier Noria | 2012-02-12 | 1 | -1/+1 |
| | | | | | The impact of this change has been measured pluralizing the entire /usr/share/dict/words, showing a 6x speedup | ||||
* | Add ActiveSupport::Inflector.ordinal and Integer#ordinal | Tim Gildea | 2012-02-04 | 1 | -10/+24 |
| | |||||
* | There is an "inherit" option on const_get too, why not use it? | Semyon Perepelitsa | 2012-01-31 | 1 | -1/+1 |
| | |||||
* | safe_constantize should handle wrong constant name NameErrors Fixes #4710 | Alex Tambellini | 2012-01-26 | 1 | -1/+1 |
| | |||||
* | global variables may not be set depending on the match. fixes #4703 | Aaron Patterson | 2012-01-26 | 1 | -1/+4 |
| | |||||
* | Change ActiveRecord::Errors to ActiveModel::Errors in guides | Carlos Antonio da Silva | 2012-01-25 | 1 | -6/+6 |
| | | | | | | | Use ActiveModel::Errors in inflection example docs as well. Also fixes wrong information and link to locale file related to Errors#full_messages in I18n guide. | ||||
* | remove ruby 1.8 checking in constantize method | Vasiliy Ermolovich | 2011-12-29 | 1 | -39/+24 |
| | |||||
* | fix typo again (Thanks Phillip Oertel) | Vijay Dev | 2011-11-08 | 1 | -1/+1 |
| | |||||
* | fix typo | Vijay Dev | 2011-11-06 | 1 | -1/+1 |
| | |||||
* | Refactored pluralize and singularize into a common method. | Henrik Hodne | 2011-11-06 | 1 | -16/+18 |
| | | | | See diff discussion on rails/#3536. | ||||
* | defines Module#qualified_const_(defined?|get|set) and String#deconstantize | Xavier Noria | 2011-10-29 | 1 | -6/+23 |
| | | | | | | | | | | This commit also implements a faster version of #demodulize I was unable to isolate with git add --patch. Not a big fan of the name #deconstantize. It complements #demodulize getting rid of the rightmost constant, hence the name, but it is unrelated to the well-known #constantize. So unsure. Could not come with anything better, please feel free to rename. | ||||
* | let demodulize do less work, and add tests | Xavier Noria | 2011-10-29 | 1 | -1/+3 |
| | | | | This is also faster on 1.9. | ||||
* | Update CHANGELOG for safe_constantize. | José Valim | 2011-09-23 | 1 | -1/+4 |
| | |||||
* | Ensure that constantize just rescues NameError that applies to the constant ↵ | José Valim | 2011-09-23 | 1 | -4/+20 |
| | | | | being currently loaded. | ||||
* | Added ActiveSupport::Inflector.safe_constantize and String#safe_constantize; ↵ | Ryan Oblak | 2011-09-23 | 1 | -0/+27 |
| | | | | refactored common constantize tests into ConstantizeTestCases | ||||
* | Revert removing gsub and sub from safe buffer. | José Valim | 2011-09-08 | 1 | -24/+8 |
| | |||||
* | remove support of symbols on classify and camelize | Damien Mathieu | 2011-09-08 | 1 | -0/+16 |
| | |||||
* | make gsub and sub unavailable in SafeBuffers - Closes #1555 | Damien Mathieu | 2011-09-08 | 1 | -8/+8 |
| | |||||
* | Add more examples to #titleize | Pol Llovet | 2011-07-09 | 1 | -2/+4 |
| | |||||
* | Add acronym support to Inflector; Issue #1366 | David Lee | 2011-06-11 | 1 | -7/+10 |
| | |||||
* | Refactor | David Lee | 2011-06-11 | 1 | -0/+92 |
| | |||||
* | adds code examples for negative ordinalize | Vijay Dev | 2011-05-08 | 1 | -1/+3 |
| | |||||
* | ordinalize negative numbers patch | Jason | 2011-05-07 | 1 | -2/+2 |
| | | | | | | | Applied patch by Amir Manji https://github.com/rails/rails/issues/437#issuecomment-1116045 Signed-off-by: Jason <jasonmichaelroth@gmail.com> | ||||
* | camelize and underscore are sort of inverse of each other, but not in a ↵ | Xavier Noria | 2010-07-22 | 1 | -1/+11 |
| | | | | mathematical sense [#5174 state:resolved] | ||||
* | Avoid unnecessary allocations in Inflector.underscore [#3626 state:resolved] | Joe Van Dyk | 2010-04-12 | 1 | -5/+7 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Avoid calling triggering const_missing if const_missing is private when ↵ | Carl Lerche | 2010-02-18 | 1 | -1/+1 |
| | | | | doing constantize | ||||
* | Break up inflector to reduce the dependency burden on dependency-les methods ↵ | Yehuda Katz | 2009-11-07 | 1 | -0/+139 |
like constantize. |