Skip to content

Instantly share code, notes, and snippets.

@wprater
Created August 28, 2012 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wprater/3498105 to your computer and use it in GitHub Desktop.
Save wprater/3498105 to your computer and use it in GitHub Desktop.
What is the preferred way to define a resourceful schema?
// Opt. 1 from resourceful Readme, examples, tests, etc.
var Creature = resourceful.define('creature', function () {
this.string('type');
};
// Opt. 2 from other Flatiron project examples
Creature = resourceful.define('creature');
Creature.property('type', String, { default: "dragon" });
@markotom
Copy link

Good question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment