lib/openid/store/memory.rb in ruby-openid-2.2.3 vs lib/openid/store/memory.rb in ruby-openid-2.3.0
- old
+ new
@@ -7,11 +7,10 @@
#
# You should probably be looking at OpenID::Store::Filesystem
class Memory < Interface
def initialize
- @associations = {}
- @associations.default = {}
+ @associations = Hash.new { |hash, key| hash[key] = {} }
@nonces = {}
end
def store_association(server_url, assoc)
assocs = @associations[server_url]