Skip to content

Commit

Permalink
Update model.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Apr 10, 2022
1 parent aca04ef commit 54117f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/api/model.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ Item("def") # <=> items/def.yml

Filename patterns are relative to the file in which the model is defined unless `<pattern>` is an absolute path or explicitly relative to the current directory:

- Absolute: `/tmp/items/{self.name}.yml`
- Relative to model: `items/{self.name}.yml`
- Relative to current directory: `./items/{self.name}.yml`
- Absolute path: `/tmp/items/{self.name}.yml`
- Relative to model's module: `items/{self.name}.yml`
- Relative to the current directory: `./items/{self.name}.yml`
- Relative to the user's home directory: `~/items/{self.name}.yml`

Attributes included in the filename pattern and those with default value are automatically excluded from serialization since these redundant values are not required to restore objects from disk.
Expand Down

0 comments on commit 54117f6

Please sign in to comment.