Don't ask the backend directly for the available locales - just ask

the I18n module and let it worry about where to find them.
This commit is contained in:
Tom Hughes 2009-05-22 23:42:17 +00:00
parent e3d4948daa
commit 2bf56c7be3

View file

@ -102,7 +102,7 @@ class ApplicationController < ActionController::Base
end end
def set_locale def set_locale
request.compatible_language_from(I18n.backend.available_locales) request.compatible_language_from(I18n.available_locales)
end end
def api_call_handle_error def api_call_handle_error