After updating to rails 3 authlogic does not work so i am using the gem 'authlogic', :git => 'git://github.com/odorcicd/authlogic.git', :branch => 'rails3'
This works for the standard setup but i have a multi account setup and i used with_scope before so a user can only login to their account / subdomain and not any account / subdomain.
This code in my application controller was working before but not now as uses the old find and not the new arel syntax.
def current_user_session
return @current_user_session if defined?(@current_user_session)
UserSession.with_scope(:account_id => account_id) do
@current_user_session = UserSession.find
end
end
Has any on managed to update this for rails 3 or found a fix ?
Please help !
Best regards Richard