Created
November 14, 2013 01:27
-
-
Save mikepmunroe/7459680 to your computer and use it in GitHub Desktop.
EAK fixture definition example
This file contains 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
var User = DS.Model.extend({ | |
name : DS.attr('string'), | |
email : DS.attr('string'), | |
creationDate : DS.attr('date') | |
}); | |
User.reopenClass({ | |
FIXTURES: [ | |
{ | |
id: "1", | |
name: 'John David', | |
email: '[email protected]', | |
creationDate: 'Sun, 10 Nov 2013 10:10:10 GMT' | |
} | |
]}); | |
export default User; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment