Skip to content

Instantly share code, notes, and snippets.

@emschwar
Created December 9, 2009 22:48
Show Gist options
  • Save emschwar/252920 to your computer and use it in GitHub Desktop.
Save emschwar/252920 to your computer and use it in GitHub Desktop.
Todos.Task = SC.Record.extend(
/** @scope Todos.Task.prototype */ {
isDone: SC.Record.attr(Boolean),
description: SC.Record.attr(String)
}) ;
Todos.store.find(Todos.Task).firstObject().get('attributes') => Object guid=task-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment