We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
route.defaults
provider.defaults
options
1 parent bf61c14 commit 8d4d3d5Copy full SHA for 8d4d3d5
src/ngResource/resource.js
@@ -642,9 +642,8 @@ angular.module('ngResource', ['ng']).
642
forEach(actions, function(action, name) {
643
var hasBody = /^(POST|PUT|PATCH)$/i.test(action.method);
644
var numericTimeout = action.timeout;
645
- var cancellable = isDefined(action.cancellable) ? action.cancellable :
646
- (options && isDefined(options.cancellable)) ? options.cancellable :
647
- provider.defaults.cancellable;
+ var cancellable = isDefined(action.cancellable) ?
+ action.cancellable : route.defaults.cancellable;
648
649
if (numericTimeout && !isNumber(numericTimeout)) {
650
$log.debug('ngResource:\n' +
0 commit comments