(restangular) Fix argument order in custom methods

The arguments were in the wrong order for custom methods
fix restangular test
Merge pull request #2096 from santialbo/patch-5

(restangular) Fix argument order in custom methods