mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
f76d1aa54d
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 |
||
---|---|---|
.. | ||
array | ||
class | ||
digest | ||
hash | ||
kernel | ||
module | ||
object | ||
bigdecimal_test.rb | ||
class_test.rb | ||
date_and_time_behavior.rb | ||
date_ext_test.rb | ||
date_time_ext_test.rb | ||
duration_test.rb | ||
enumerable_test.rb | ||
file_test.rb | ||
hash_ext_test.rb | ||
integer_ext_test.rb | ||
kernel_test.rb | ||
load_error_test.rb | ||
marshal_test.rb | ||
module_test.rb | ||
name_error_test.rb | ||
numeric_ext_test.rb | ||
range_ext_test.rb | ||
regexp_ext_test.rb | ||
securerandom.rb | ||
string_ext_test.rb | ||
time_ext_test.rb | ||
time_with_zone_test.rb | ||
uri_ext_test.rb |