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:
parent
e3d4948daa
commit
2bf56c7be3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue