diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-10-29 10:51:56 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-10-29 10:51:56 +0100 |
commit | 4dbfe18b37ad4fa95eecb9082a446c798e84e499 (patch) | |
tree | 885701c845a0e3589f1b565f0ee610faf792e447 /activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend | |
parent | 4ad5aa9a39a83863331a7665407dac475855765b (diff) | |
download | rails-4dbfe18b37ad4fa95eecb9082a446c798e84e499.tar.gz rails-4dbfe18b37ad4fa95eecb9082a446c798e84e499.tar.bz2 rails-4dbfe18b37ad4fa95eecb9082a446c798e84e499.zip |
Proper API for reloading translations
Diffstat (limited to 'activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend')
-rw-r--r-- | activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb b/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb index c682eadf85..bdda55d3fe 100644 --- a/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb +++ b/activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb @@ -69,8 +69,9 @@ module I18n @initialized ||= false end - def reload + def reload! @initialized = false + @translations = nil end protected |