How to use the active-model-adapter.ActiveModelAdapter.extend function in active-model-adapter

To help you get started, we’ve selected a few active-model-adapter examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Vestorly / ember-cli-infinite-scroll / tests / dummy / app / adapters / application.js View on Github external
import { ActiveModelAdapter } from 'active-model-adapter';

export default ActiveModelAdapter.extend({
  host: 'http://staging.vestorly.com',
  namespace: 'api/v3/reader/publishers/infinite-scroll'
});
github alphasights / ember-scrollable / app / adapters / application.js View on Github external
import { ActiveModelAdapter } from 'active-model-adapter';

export default ActiveModelAdapter.extend({
  host: EmberENV.apiBaseUrl,

  shouldBackgroundReloadRecord: function() {
    return false;
  },

  shouldReloadAll: function() {
    return true;
  }
});

active-model-adapter

Adapters and Serializers for Rails's ActiveModel::Serializers

MIT
Latest version published 2 years ago

Package Health Score

56 / 100
Full package analysis