finishes i18n set_locale with user settings

This commit is contained in:
Manuel Wiedenmann 2013-06-14 02:39:25 +02:00
parent 5b7ec86ed6
commit 2c1d9aeb9c
4 changed files with 7 additions and 1 deletions

View file

@ -13,7 +13,7 @@ module Foodsoft
end
def user_settings_language
current_user.settings.profile['language'] if current_user
current_user.locale if current_user
end
def session_language