FIX: `Object.assign` is not fully supported

This commit is contained in:
Robin Ward 2017-09-14 11:58:11 -04:00
parent 8323e22d0c
commit 64fae87470
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ import RestAdapter from 'discourse/adapters/rest';
export default RestAdapter.extend({
pathFor(store, type, findArgs) {
let args = Object.assign({ rest_api: true }, findArgs);
let args = _.merge({ rest_api: true }, findArgs);
delete args.filter;
return `/admin/flags/${findArgs.filter}.json?${$.param(args)}`;
},