Zatvobor / ember-couchdb-kit

An Ember.js adapter for Apache CouchDB
MIT License
43 stars 13 forks source link

Views options should be available as an object or raw string #50

Open Zatvobor opened 11 years ago

Zatvobor commented 11 years ago

There are both expressions should be available:

options = 'key="%@"&include_docs=true'.fmt(type);
issues = App.Issue.find({type: "view", designDoc: 'issues', viewName: "all_by_board", options: options});
options = {key: type, include_docs: true};
issues = App.Issue.find({type: "view", designDoc: 'issues', viewName: "all_by_board", options: options});