Skip to content

Instantly share code, notes, and snippets.

@bdmac
Last active January 2, 2017 23:39
Show Gist options
  • Save bdmac/7dc5b7a3de4726c9edb505b10e6ab0f7 to your computer and use it in GitHub Desktop.
Save bdmac/7dc5b7a3de4726c9edb505b10e6ab0f7 to your computer and use it in GitHub Desktop.
Adding the transient online property
import Ember from 'ember';
import Model from 'ember-data/model';
import attr from 'ember-data/attr';
export default Model.extend({
...
online: attr('boolean', { defaultValue: false, transient: true }),
...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment