lib/tr8n/extensions/action_controller_extension.rb in tr8n-3.1.1 vs lib/tr8n/extensions/action_controller_extension.rb in tr8n-3.1.2

- old
+ new

@@ -72,10 +72,10 @@ # choose the first language from the accepted languages header session[:locale] = tr8n_user_preffered_locale unless session[:locale] session[:locale] = params[:locale] if params[:locale] tr8n_current_locale = session[:locale] end - + tr8n_current_user = nil if Tr8n::Config.site_user_info_enabled? begin tr8n_current_user = eval(Tr8n::Config.current_user_method) tr8n_current_user = nil if tr8n_current_user.class.name != Tr8n::Config.user_class_name