Skip to content

Instantly share code, notes, and snippets.

@mde
Forked from techwraith/gist:3876845
Created October 12, 2012 01:40
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 mde/3876878 to your computer and use it in GitHub Desktop.
Save mde/3876878 to your computer and use it in GitHub Desktop.
var Item = function () {
this.defineProperties({
name: {type: 'string'}
});
this.findByName = function (name, callback) {
geddy.model.Item.all({name: name}, callback);
}
}
Item.findByName = function (name, callback) {
geddy.model.Item.all({name: name}, callback);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment