From 2bf56c7be32bd05d97aa08298c649478cf82d4af Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 22 May 2009 23:42:17 +0000 Subject: [PATCH 1/1] Don't ask the backend directly for the available locales - just ask the I18n module and let it worry about where to find them. --- app/controllers/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application.rb b/app/controllers/application.rb index d902eac75..97332ba01 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -102,7 +102,7 @@ class ApplicationController < ActionController::Base end def set_locale - request.compatible_language_from(I18n.backend.available_locales) + request.compatible_language_from(I18n.available_locales) end def api_call_handle_error -- 2.43.2