Closed lastobelus closed 10 years ago
Thanks a lot for looking at this! I have to use this in my app a bit and then I will attempt to address your comments.
I have been using this in my app without problems.
I rebased this on current master.
I just manually merged these commits in with one change: instead of taking the method
directly as the 4th parameter, remoteCall
now takes a hash of options. To specify the method: remoteCall(post, 'submit', {token: 'asdas'}, {type: 'PUT'});
. The reason for calling it type
instead of method
is purely to align with jquery ajax
.
Thanks for the PR and sorry it took so long to merge!
allow RPC calls against the collection (ie, matching the following import route in a rails api):
then
of the promise. In the case of a flush, each of the models in the result set passed to thethen
of the flush will have themeta
that was set by its (last) operation. In the case of a query, themeta
will be set on the model array. It is set as bare javascript property, not as an ember property. Should I change this?_method
in params)My original needs involved all three of these things, but I think they are orthogonal, and if you want I can make separate branches & pull requests for them.