refactor: Refactor seralizeScopeID from models to serializers

This commit is contained in:
Susmitha Girumala committed 2020-09-21 18:23:32 -04:00
1 parent 1a565f9097
commit 0a1eafe55e
11 files changed
+63 -30

No files matched your search

-7
View File
@@ -4,13 +4,6 @@ import { computed } from '@ember/object';
export default class AccountModel extends GeneratedAccountModel {
// =properties
/**
* @type {boolean}
*/
serializeScopeID = false;
// =attributes
/**
-7
View File
@@ -27,13 +27,6 @@ import { get } from '@ember/object';
*/
export default class BaseModel extends Model {
// =properties
/**
* @type {boolean}
*/
serializeScopeID = true;
// =relationships
/**
-7
View File
@@ -3,13 +3,6 @@ import { fragmentArray } from 'ember-data-model-fragments/attributes';
export default class HostSetModel extends GeneratedHostSetModel {
// =properties
/**
* @type {boolean}
*/
serializeScopeID = false;
// =attributes
/**
+1 -7
View File
@@ -3,16 +3,10 @@ import { fragment } from 'ember-data-model-fragments/attributes';
export default class HostModel extends GeneratedHostModel {
// =properties
/**
* @type {boolean}
*/
serializeScopeID = false;
/**
* Attributes of this resource, if any, represented as a JSON fragment.
* @type {FragmentHostAttributesModel}
*/
@fragment('fragment-host-attributes', { defaultValue: {} }) attributes;
}