aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-06-23 20:05:42 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-08-11 00:20:19 -0300
commita9dccda936cbd3ead6d43997e6c7990f8bd92055 (patch)
treefbc5777e4817deb447bba27d0def3666a8377fd5 /guides
parentb6e00c67647b523e21dd5c8886859d92c0d6c5fb (diff)
downloadrails-a9dccda936cbd3ead6d43997e6c7990f8bd92055.tar.gz
rails-a9dccda936cbd3ead6d43997e6c7990f8bd92055.tar.bz2
rails-a9dccda936cbd3ead6d43997e6c7990f8bd92055.zip
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.
Diffstat (limited to 'guides')
-rw-r--r--guides/source/4_0_release_notes.textile2
1 files changed, 2 insertions, 0 deletions
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>.