From 4f75840d72b96fff34d65b59480da7d6c7494120 Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Wed, 2 Jul 2008 13:25:17 +0100 Subject: Add Inflection rules for String#humanize. [#535 state:resolved] [dcmanges] Signed-off-by: Pratik Naik --- activesupport/CHANGELOG | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'activesupport/CHANGELOG') 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] -- cgit v1.2.3