aboutsummaryrefslogtreecommitdiffstats
path: root/src/Resource.js
diff options
context:
space:
mode:
authorMarcello Nuccio2011-09-02 15:50:10 +0200
committerIgor Minar2011-09-27 00:44:10 +0200
commitbf5e5f7bc9ebc7dc6cf8fdf3c4923498b22a8654 (patch)
tree3ad51890c36f8a099637bd91702c9345e7ce6f3b /src/Resource.js
parent2e9fed7b6c5f8c738406c4e9e65300e5d69a113a (diff)
downloadangular.js-bf5e5f7bc9ebc7dc6cf8fdf3c4923498b22a8654.tar.bz2
fix($resource): action defaults should override resource defaults
defaults definned per action should take precedence over defaults defined for the whole resource. This is potentialy a BREAKING CHANGE in case someone relied on the buggy behavior.
Diffstat (limited to 'src/Resource.js')
-rw-r--r--src/Resource.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Resource.js b/src/Resource.js
index 74d952ed..045ab3a2 100644
--- a/src/Resource.js
+++ b/src/Resource.js
@@ -109,7 +109,7 @@ ResourceFactory.prototype = {
var value = this instanceof Resource ? this : (action.isArray ? [] : new Resource(data));
self.xhr(
action.method,
- route.url(extend({}, action.params || {}, extractParams(data), params)),
+ route.url(extend({}, extractParams(data), action.params || {}, params)),
data,
function(status, response) {
if (response) {