Skip to content

Commit 0cf157a

Browse files
committed
describeLinks is infrastructure, not an example
1 parent 8eaeabd commit 0cf157a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ving/generator/vingrecord.mjs

+2-4
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ const describeExample = ({ bare }) => {
7171
`;
7272
}
7373

74-
const describeLinksExample = ({ bare, name }) => {
75-
if (bare)
76-
return '';
74+
const describeLinks = ({ name }) => {
7775
return `
7876
/**
7977
* Extends \`describeLinks()\` in \`VingRecord\`
@@ -115,7 +113,7 @@ ${bare ? '' : "import { isUndefined } from '#ving/utils/identify.mjs';"}
115113
export class ${name}Record extends VingRecord {
116114
// add custom Record code here
117115
${describeExample({ bare })}
118-
${describeLinksExample({ bare, name })}
116+
${describeLinks({ bare, name })}
119117
${addRelationshipDelete({ schema })}
120118
}
121119

0 commit comments

Comments
 (0)