From a9dccda936cbd3ead6d43997e6c7990f8bd92055 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Sat, 23 Jun 2012 20:05:42 -0300 Subject: Fallback to :en locale instead of handling a constant with defaults Action Pack already comes with a default locale fine for :en, that is always loaded. We can just fallback to this locale for defaults, if values for the current locale cannot be found. Closes #4420, #2802, #2890. --- guides/source/4_0_release_notes.textile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'guides/source/4_0_release_notes.textile') diff --git a/guides/source/4_0_release_notes.textile b/guides/source/4_0_release_notes.textile index d545798f6f..914ba0dd9a 100644 --- a/guides/source/4_0_release_notes.textile +++ b/guides/source/4_0_release_notes.textile @@ -747,6 +747,8 @@ h3. Active Resource h3. Active Support +* Add default values to all ActiveSupport::NumberHelper methods, to avoid errors with empty locales or missing values. + * Time#change now works with time values with offsets other than UTC or the local time zone. * Add Time#prev_quarter and Time#next_quarter short-hands for months_ago(3) and months_since(3). -- cgit v1.2.3