Last active
January 2, 2017 23:39
-
-
Save bdmac/7dc5b7a3de4726c9edb505b10e6ab0f7 to your computer and use it in GitHub Desktop.
Adding the transient online property
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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