refactor: 💡 implement new pathing for roles

This commit is contained in:
Randall Morey committed 2020-09-10 11:03:44 -04:00
1 parent 4a63c6484f
commit 76fe50c9e3
14 files changed
+75 -31

No files matched your search

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