brobles82/ember-meteor — pull request #1 by kylefinley (2013-07-24 19:04:32+00:00)
Title: Adds Todo's example, that uses MeteorAdpater for persistence

**MeteorAdapter** uses `Meteor.methods()` calls to `find`, `insert`, `update` and `remove` documents.

The method calls are automatically created on the client using Name of the model plus the name of the action separated by a period (`.`) For example a model named `Todo` would use the method `Todo.find` for the `find` action and `Todo.insert` for the `insert` action.

Example usage:

```javascript
Meteor.methods({
'Todo.find': function (selector, options) {
// perform checks

// Be sure to call .fetch() to return the records
return TodosModel.find(selector, options).fetch();
},

'Todo.findOne': function (selector, options) {
// perform checks

return TodosModel.findOne(selector, options);
},

'Todo.insert': function (doc, options) {
// perform checks

return TodosModel.insert(doc);
},

'Todo.update': function (selector, modifier, options) {
// perform checks

return TodosModel.update(selector, modifier, options);
},

'Todo.remove': function (selector) {
// perform checks

return TodosModel.remove(selector);
}
});
```