Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

SessionHash#update and SessionHash#delete are missing a call to load! [

…#3056 state:resolved]
  • Loading branch information...
commit 6f40139b53b8e9ac805a15bb7c070d7bf9f6ce66 1 parent cf9f361
@josh josh authored
View
2  actionpack/lib/action_dispatch/middleware/session/abstract_store.rb
@@ -45,6 +45,7 @@ def update(hash = nil)
ActiveSupport::Deprecation.warn('use replace instead', caller)
replace({})
else
+ load! unless @loaded
super(hash.stringify_keys)
end
end
@@ -54,6 +55,7 @@ def delete(key = nil)
ActiveSupport::Deprecation.warn('use clear instead', caller)
clear
else
+ load! unless @loaded
super(key.to_s)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.