angular/angular.js — pull request #5061 by tbosch (2013-11-21 00:46:41+00:00)
Title: fix($resource): Always return a resource instance when calling class met...

...hods on resources.

Previously, calling `MyResource.save(myResourceInstance)`returned
a promise, in contrast to the docs for `$resource`. However,
calling `MyResource.save({name: 'Tobias"})`already correctly
returned a resource instance.

Fixes #4545.