Do not mark the session as loaded if an error happened while doing it.

This commit is contained in:
José Valim 2010-06-25 19:03:00 +02:00
parent 21c99e9388
commit 01472b5217

@ -24,7 +24,7 @@ def initialize(by, env, default_options)
def [](key)
if key == :id
load_session_id! unless key?(:id) || has_session_id?
load_session_id! unless super(:id) || has_session_id?
end
super(key)
end
@ -37,7 +37,6 @@ def has_session_id?
def load_session_id!
self[:id] = @by.send(:extract_session_id, @env)
ensure
@session_id_loaded = true
end
end