Merge pull request #244 from foodcoop-rostock/fix-clean-session-on-logout

The original bug has really been annoying. Nice to have it fixed.

Tested it and found it fine. Should be finished now.
This commit is contained in:
JuliusR 2014-01-03 14:03:35 -08:00
commit e807ff8b38

View file

@ -28,6 +28,7 @@ class SessionsController < ApplicationController
def destroy def destroy
session[:user_id] = nil session[:user_id] = nil
session[:return_to] = nil
redirect_to login_url, :notice => I18n.t('sessions.logged_out') redirect_to login_url, :notice => I18n.t('sessions.logged_out')
end end
end end