Skip to content

Instantly share code, notes, and snippets.

@mikepmunroe
Created November 14, 2013 01:27
Show Gist options
  • Save mikepmunroe/7459680 to your computer and use it in GitHub Desktop.
Save mikepmunroe/7459680 to your computer and use it in GitHub Desktop.
EAK fixture definition example
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