rails/activesupport
Dominik Masur f76d1aa54d Removing :en in favor of I18n.default_locale in duration#inspect
Hi there,

i have an app without english as available locale. So i got an error when we try to inspect something like 1.day. This is done automatically when we use the dalli cache.

I would like to change the :en to ::I18n.default_locale to be sure that this is always constant and is an available locale.

Tests are all green with this change.

Calculating -------------------------------------
:locale => :en                              2.024k i/100ms
:locale => ::I18n.default_locale   2.236k i/100ms
-------------------------------------------------
:locale => :en                                  25.758k (±26.3%) i/s -    117.392k
:locale => ::I18n.default_locale       26.311k (±18.1%) i/s -    127.452k
2015-01-12 19:34:32 +01:00
..
bin Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
lib Removing :en in favor of I18n.default_locale in duration#inspect 2015-01-12 19:34:32 +01:00
test Removing :en in favor of I18n.default_locale in duration#inspect 2015-01-12 19:34:32 +01:00
activesupport.gemspec Require Ruby 2.2 for Rails 5.0 2014-12-26 13:53:09 +01:00
CHANGELOG.md formatting pass over CHANGELOGs. [ci skip] 2015-01-10 12:17:57 +01:00
MIT-LICENSE Update copyright notices to 2015 [ci skip] 2014-12-31 08:34:14 +01:00
Rakefile Follow up to #16613 2014-09-28 12:04:06 +02:00
README.rdoc Feature requests should be made on the mailing list, not submitted to 2014-06-01 19:11:39 -07:00

= Active Support -- Utility classes and Ruby extensions from Rails

Active Support is a collection of utility classes and standard library
extensions that were found useful for the Rails framework. These additions
reside in this package so they can be loaded as needed in Ruby projects
outside of Rails.


== Download and installation

The latest version of Active Support can be installed with RubyGems:

  % [sudo] gem install activesupport

Source code can be downloaded as part of the Rails project on GitHub:

* https://github.com/rails/rails/tree/master/activesupport


== License

Active Support is released under the MIT license:

* http://www.opensource.org/licenses/MIT


== Support

API documentation is at:

* http://api.rubyonrails.org

Bug reports can be filed for the Ruby on Rails project here:

* https://github.com/rails/rails/issues

Feature requests should be discussed on the rails-core mailing list here:

* https://groups.google.com/forum/?fromgroups#!forum/rubyonrails-core