I get an error when logging out which has to do with line 109
(session.delete) in auth_controller... number of arguments. If I
comment it out it works fine but I am not sure why it is set up this
way to begin with. It seems like overkill since the very next line
clears the session anyway... Am I missing something? Also shouldn't
it
be "reset_session" instead?
I would think getting rid of this:
def logout
if
request.post?
self.class.logout(session)
end
redirect_to Goldberg.settings.public_role.get_start_path
end
protected
def self.logout(session)
session[:goldberg] = nil
end
def self.clear_session(session)
session[:goldberg] = nil
end
for this:
def logout
if
request.post?
reset_session
end
redirect_to Goldberg.settings.public_role.get_start_path
end
Less code... Reasons it won't work?