diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-07-02 13:25:17 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-07-02 13:25:36 +0100 |
commit | 4f75840d72b96fff34d65b59480da7d6c7494120 (patch) | |
tree | cd13f9cf0359811c262e47737e704b059312ee05 /activesupport/CHANGELOG | |
parent | 3a95ee73cfbcfeada3b053c5b0fb7b5125ef12c7 (diff) | |
download | rails-4f75840d72b96fff34d65b59480da7d6c7494120.tar.gz rails-4f75840d72b96fff34d65b59480da7d6c7494120.tar.bz2 rails-4f75840d72b96fff34d65b59480da7d6c7494120.zip |
Add Inflection rules for String#humanize. [#535 state:resolved] [dcmanges]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'activesupport/CHANGELOG')
-rw-r--r-- | activesupport/CHANGELOG | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG b/activesupport/CHANGELOG index f0c1a208a5..73c965b1db 100644 --- a/activesupport/CHANGELOG +++ b/activesupport/CHANGELOG @@ -1,5 +1,13 @@ *Edge* +* Add Inflection rules for String#humanize. #535 [dcmanges] + + ActiveSupport::Inflector.inflections do |inflect| + inflect.human(/_cnt$/i, '\1_count') + end + + 'jargon_cnt'.humanize # => 'Jargon count' + * TimeWithZone: when crossing DST boundary, treat Durations of days, months or years as variable-length, and all other values as absolute length. A time + 24.hours will advance exactly 24 hours, but a time + 1.day will advance 23-25 hours, depending on the day. Ensure consistent behavior across all advancing methods [Geoff Buesing] * Added TimeZone #=~, to support matching zones by regex in time_zone_select. #195 [Ernie Miller] |