locks/ember-localstorage-adapter

Handle Relationship in Ember-CLI

Opened this issue · 0 comments

i'm wondering how you would set ember cli working with localstorage-adapters relationship.

the LOC in question is this: https://github.com/kurko/ember-localstorage-adapter/blob/master/localstorage_adapter.js#L408

basically, my app is structured such that the ApplicationAdapter is a ActiveModelAdapter, so I have to define a file for each adapter for my other models.

All of them defined as such:

import DS from 'ember-data';

export default DS.LSAdapter;

but the container add some extra stuff that makes: https://github.com/kurko/ember-localstorage-adapter/blob/master/localstorage_adapter.js#L408 not work.

I understand why it's there. If the Adapters aren't the same, it might break.

Any ideas? I'm open to patching this (instead of the monkey patch in my code).