aboutsummaryrefslogtreecommitdiffstats
path: root/lib/gettext_setup.rb
diff options
context:
space:
mode:
authorMark Longair <mhl@pobox.com>2013-04-09 15:57:13 +0100
committerMark Longair <mhl@pobox.com>2013-04-09 15:57:13 +0100
commita5537818e559c5a30c1bf07dd49a1f4cb06fa1ea (patch)
tree055c8099fced225bbe5e991af288b750187f80aa /lib/gettext_setup.rb
parente90c170f84ab4b91b25c673045bc0bbec0c5788a (diff)
Replace Dispatcher.to_prepare with Rails.configuration.to_prepare
Diffstat (limited to 'lib/gettext_setup.rb')
-rw-r--r--lib/gettext_setup.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gettext_setup.rb b/lib/gettext_setup.rb
index 5b7a455..879bf57 100644
--- a/lib/gettext_setup.rb
+++ b/lib/gettext_setup.rb
@@ -1,7 +1,6 @@
# Add a callback - to be executed before each request in development,
# and at startup in production - to plug in theme locale strings.
-require 'dispatcher'
-Dispatcher.to_prepare do
+Rails.configuration.to_prepare do
repos = [
FastGettext::TranslationRepository.build('app', :path=>File.join(File.dirname(__FILE__), '..', 'locale-theme'), :type => :po),
FastGettext::TranslationRepository.build('app', :path=>'locale', :type => :po)