From a5537818e559c5a30c1bf07dd49a1f4cb06fa1ea Mon Sep 17 00:00:00 2001 From: Mark Longair Date: Tue, 9 Apr 2013 15:57:13 +0100 Subject: Replace Dispatcher.to_prepare with Rails.configuration.to_prepare --- lib/gettext_setup.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/gettext_setup.rb') 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) -- cgit v1.2.3