Skip to content

Commit f037957

Browse files
author
Lee Richmond
committed
Ensure Config.setup() can run multiple times
1 parent f13ff24 commit f037957

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/fixtures.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ class Person extends ApplicationRecord {
1414
lastName: string = attr();
1515
}
1616

17+
// Ensure setup() can be run multiple times with no problems
18+
// putting this here, otherwise relations wont be available.
19+
Config.setup();
20+
1721
// plain js class
1822
let Author = Person.extend({
1923
static: {

0 commit comments

Comments
 (0)