4b646d40ea
refs https://github.com/TryGhost/Team/issues/1358 - added acceptance tests for members settings screen - subscription access management - default post access management - free tier management - fixed `enableLabsFlag()` test helper overwriting existing flag settings when enabling another one - updated API mocks and fixtures - matched product fixtures to default tiers-enabled products - updated product API mocks to include benefit handling
23 lines
477 B
JavaScript
23 lines
477 B
JavaScript
import BaseSerializer from './application';
|
|
import {underscore} from '@ember/string';
|
|
|
|
export default BaseSerializer.extend({
|
|
embed: true,
|
|
|
|
include(/*request*/) {
|
|
let includes = [];
|
|
|
|
includes.push('productBenefits');
|
|
|
|
return includes;
|
|
},
|
|
|
|
keyForEmbeddedRelationship(relationshipName) {
|
|
if (relationshipName === 'productBenefits') {
|
|
return 'benefits';
|
|
}
|
|
|
|
return underscore(relationshipName);
|
|
}
|
|
});
|