end
end
- I18n.locale = request.compatible_language_from(I18n.available_locales)
-
- logger.info "Selected locale #{I18n.locale} from #{request.user_preferred_languages.inspect}"
+ I18n.locale = request.compatible_language_from(I18n.available_locales) || I18n.default_locale
response.headers['Content-Language'] = I18n.locale.to_s
end
return [user, pass]
end
+ # used by oauth plugin to get the current user
+ def current_user
+ @user
+ end
+
# used by oauth plugin to set the current user
def current_user=(user)
@user=user