chore: 🤖 introduce Scope model with self relationships
This commit is contained in:
5 files changed
+108
No files matched your search
@@ -17,6 +17,15 @@ export default class ApplicationSerializer extends RESTSerializer {
|
||||
return underscore(attr);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates an underscored key for the relationship ending in `_id`.
|
||||
* @param {string} rel
|
||||
* @return {string}
|
||||
*/
|
||||
keyForRelationship(rel) {
|
||||
return `${underscore(rel)}_id`;
|
||||
}
|
||||
|
||||
/**
|
||||
* If an attribute is annotated as readOnly in the model, don't serialize it.
|
||||
* Otherwise delegate to default attribute serializer.
|
||||
|
||||
Reference in new issue
Block a user