From a9dccda936cbd3ead6d43997e6c7990f8bd92055 Mon Sep 17 00:00:00 2001
From: Carlos Antonio da Silva <carlosantoniodasilva@gmail.com>
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 <tt>ActiveSupport::NumberHelper</tt> methods, to avoid errors with empty locales or missing values.
+
 * <tt>Time#change</tt> now works with time values with offsets other than UTC or the local time zone.
 
 * Add <tt>Time#prev_quarter</tt> and <tt>Time#next_quarter</tt> short-hands for <tt>months_ago(3)</tt> and <tt>months_since(3)</tt>.
-- 
cgit v1.2.3

