lib/key_vortex/adapter/memory.rb in key-vortex-0.1.4 vs lib/key_vortex/adapter/memory.rb in key-vortex-0.2.0
- old
+ new
@@ -10,10 +10,10 @@
@items = items
limitations.each { |limit| register_limitation(limit) }
end
def save(record)
- @items[record.id] = record
+ @items[record.key] = record
end
def find(id)
@items[id]
end