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 /actionpack/lib | |
parent | 4ad5aa9a39a83863331a7665407dac475855765b (diff) | |
download | rails-4dbfe18b37ad4fa95eecb9082a446c798e84e499.tar.gz rails-4dbfe18b37ad4fa95eecb9082a446c798e84e499.tar.bz2 rails-4dbfe18b37ad4fa95eecb9082a446c798e84e499.zip |
Proper API for reloading translations
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/dispatcher.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/dispatcher.rb b/actionpack/lib/action_controller/dispatcher.rb index 28f8ce3d53..f3e173004a 100644 --- a/actionpack/lib/action_controller/dispatcher.rb +++ b/actionpack/lib/action_controller/dispatcher.rb @@ -28,6 +28,10 @@ module ActionController end after_dispatch :flush_logger if Base.logger && Base.logger.respond_to?(:flush) + + to_prepare do + I18n.reload! + end end # Backward-compatible class method takes CGI-specific args. Deprecated |