Returns the current locale, and sets it in the session if it wasn’t there
# File vendor/plugins/ubiquo_i18n/lib/ubiquo_i18n/extensions/locale_changer.rb, line 12
12: def current_locale
13: if @current_locale.blank?
14: @current_locale ||= params[:locale] || session[:locale] ||ubiquo_config_call(:last_user_locale, {:context => :ubiquo_i18n}) || Locale.default
15: Locale.current = session[:locale] = @current_locale
16: ubiquo_config_call(:set_last_user_locale, {:context => :ubiquo_i18n, :locale => @current_locale})
17: end
18: @current_locale
19: end
Disabled; run with $DEBUG to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.