Skip to content

v2.13.27

Compare
Choose a tag to compare
@danielspaniel danielspaniel released this 21 Feb 23:38
· 206 commits to master since this release
  • adding the method attributesFor to allow you to make attributes for a model
  • use the traits and object override format just like with build/make
  • For now the relationships are NOT available. That will have to wait for future release .. so stay tuned

Example:

import { attributesFor } from 'ember-data-factory-guy';

let attrs = attributesFor('user'); // => 
  /**
  {
    "name": "User1",
    "style": "normal"
  };
 */

 attrs = attributesFor('user' , 'silly'); // => 
  /**
  {
    "name": "User1",
    "style": "silly"
  };
 */