Skip to content

Instantly share code, notes, and snippets.

@twokul
Last active August 29, 2015 14:22
Show Gist options
  • Save twokul/87e5ba9bec122730f2f7 to your computer and use it in GitHub Desktop.
Save twokul/87e5ba9bec122730f2f7 to your computer and use it in GitHub Desktop.
Ember Data Factory Guy (sample factory)
FactoryGuy.define('user', {
default: {
firstName: 'David',
lastName: 'Hamilton'
}
});
// using `make` and `build` EDFG helpers
// make('user') => ED record
// build('user') => JSON payload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment