In the Ember docs I found that find() has support for finding by id:
this.store.find('post', 1); // => GET /posts/1
And also by passing arbitrary parameters:
this.store.find('post', { name: "Peter" }); // => GET to /posts?name='Peter'
But in my case I must find by id, and pass an additional parameter to request all fields to be included in the response (some are omitted by default), like so:
this.store.find('post', 1); // => GET /posts/1?include=all
I tried to do it this way:
this.get('store').find('post', params.post_id, { include : 'all' });
But my params were ignored.
This seems a fairly basic use case so I must be missing something...
How can I accomplish this?