Module | I18n::Backend::Cache |
In: |
lib/i18n/backend/cache.rb
|
TODO Should the cache be cleared if new translations are stored?
USE_INSPECT_HASH | = | RUBY_VERSION <= "1.9" | In Ruby < 1.9 the following is true: { :foo => 1, :bar => 2 }.hash == { :foo => 2, :bar => 1 }.hash Therefore we must use the hash of the inspect string instead to avoid cache key colisions. |