Zatvobor / ember-couchdb-kit

An Ember.js adapter for Apache CouchDB
MIT License
43 stars 13 forks source link

@get('serializer') returns null in stringForType #74

Closed simonexmachina closed 10 years ago

simonexmachina commented 10 years ago

I've had to add the following to my ApplicationAdapdater:

App.ApplicationAdapter = EmberCouchDBKit.DocumentAdapter.extend
  stringForType: (type)->
    type.typeKey

Am I maybe supposed to be injecting the serializer into the adapter? Please advise if I'm missing something.

OpakAlex commented 10 years ago

What branch are you using?

simonexmachina commented 10 years ago

This happens on beta2.

OpakAlex commented 10 years ago

I remove stringForType method. Now I can use only Ember.String.singularize for design name and type

OpakAlex commented 10 years ago

https://github.com/roundscope/ember-couchdb-kit/blob/beta2/src/document-adapter.coffee#L246-L250 see more