Fixed name space conflict.

This commit is contained in:
Martin Edenhofer 2012-04-20 09:06:45 +02:00
parent 25757cfe70
commit 0dd055f2eb

View file

@ -94,9 +94,9 @@ class ApplicationController < ActionController::Base
# check logon session # check logon session
if params['logon_session'] if params['logon_session']
session = ActiveRecord::SessionStore::Session.where( :session_id => params['logon_session'] ).first logon_session = ActiveRecord::SessionStore::Session.where( :session_id => params['logon_session'] ).first
if session if logon_session
userdata = User.find( user_id = session.data[:user_id] ) userdata = User.find( user_id = logon_session.data[:user_id] )
end end
# set logon session user to current user # set logon session user to current user