refactor: 💡 implement new pathing for groups

This commit is contained in:
Randall Morey committed 2020-09-09 16:24:48 -04:00
1 parent a368d65d10
commit e80708eeb4
17 files changed
+75 -36

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import ApplicationAdapter from './application';
export default class GroupAdapter extends ApplicationAdapter {
// =attributes
/**
* Groups use the new, unprefixed pathing style.
* @override
*/
hasScopePrefix = false;
}
+8
View File
@@ -2,6 +2,14 @@ import ApplicationSerializer from './application';
export default class GroupSerializer extends ApplicationSerializer {
// =attributes
/**
* Serialized the scope ID into the `scope_id` field.
* @type {boolean}
*/
serializeScopeID = true;
// =methods
/**