rpflorence/ember-localstorage-adapter — pull request #2 by bradleypriest (2012-12-01 11:31:47+00:00)
Title: Store the ID with the record.

Use includeId:true when calling toData on the object.

Without this change objects were being stored with their ids as a key but not in the JSON itself. `preprocessData` would return ["undefined", "undefined"] and it would only load one object.

The alternative option is to record the object ids when pulling them from localstorage and pass them as a third argument to loadMany etc, but this seems cleaner to me.