ember.js - How to configure adapter in newest version of ember data? -


i have moved ember 1.0.0 , ember-data-v1.0.0-beta.1-87-gc08101e.js. getting lots of trouble. starters:

app.adapter.configure('plurals', {     voice_menu : 'voicemenus',     profile    : 'profile',     company    : 'companies', }); 

i error message:

uncaught typeerror: object ... has no method 'configure'  

how can configure adapter now?

there no configure method on adapter in new ember data. adapters have changed quite bit, should assume existing customizations need rewritten.

define custom adapter models like:

app.companyadapter = ds.restadapter.extend({ }); 

and custom serializer like:

app.companyserializer = ds.restserializer.extend({ }); 

for details see rest-adapter-and-serializer-configuration section of transition guide


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -