I have an ember app that hooks into a rails-api. I am using devise for authentication and have an application.js adapter set up for the authorization. Now I want to connect to my rails DB model and display some data. I need to add the ActiveModelAdapter to connect. How do I add in a second ActiveModelAdapter so I can use it? I'm just getting started with Ember so I wasn't sure.
import DS from 'ember-data';
import DataAdapterMixin from 'ember-simple-auth/mixins/data-adapter-mixin';
import ActiveModelAdapter from 'active-model-adapter';
export default DS.JSONAPIAdapter.extend(DataAdapterMixin, {
authorizer: 'authorizer:devise'
});
Aucun commentaire:
Enregistrer un commentaire