refactor: change parentScope to scope
This commit is contained in:
3 files changed
+20
-21
No files matched your search
@@ -16,13 +16,13 @@ export default class ScopeModel extends GeneratedScopeModel {
|
||||
* The parent scope, if any.
|
||||
* @type {ScopeModel}
|
||||
*/
|
||||
@belongsTo('scope', {inverse: 'childrenScopes'}) parentScope;
|
||||
@belongsTo('scope', {inverse: 'children'}) scope;
|
||||
|
||||
/**
|
||||
* The inverse of parent scope, children.
|
||||
* @type {ScopeModelp[]}
|
||||
*/
|
||||
@hasMany('scope', {inverse: 'parentScope'}) childrenScopes;
|
||||
@hasMany('scope', {inverse: 'scope'}) children;
|
||||
|
||||
// =attributes
|
||||
|
||||
|
||||
@@ -10,8 +10,7 @@ export default class ApplicationSerializer extends RESTSerializer {
|
||||
// =attributes
|
||||
|
||||
attrs = {
|
||||
scope: { serialize: false },
|
||||
parentScope: { serialize: false }
|
||||
scope: { serialize: false }
|
||||
};
|
||||
|
||||
// =methods
|
||||
|
||||
Reference in new issue
Block a user