Skip to content

Commit 309466c

Browse files
committed
WIP 20250517-1144
1 parent 6e040b5 commit 309466c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ Post.random_params!(:create, %{author: "James"}, %{
4343

4444
### Options
4545

46-
By default, it generates attributes and arguments except those with `allow_nil?: true`.
46+
By default, it generates random values for attributes and arguments that have `allow_nil?: false` and no default value (`default == nil`).
4747

48-
- `populate`: Generates values even for attributes/arguments with `allow_nil?: true`
49-
- `omit`: Skips generation even for attributes/arguments with `allow_nil?: false`
50-
- `include_defaults?`: When set to `true`, includes default values for attributes/arguments with `allow_nil?: true`
48+
- `populate`: Forces generation of random values for specified attributes/arguments, overriding the default behavior
49+
- `omit`: Prevents generation of random values for specified attributes/arguments, overriding the default behavior
50+
- `include_defaults?`: When set to `true`, includes default values for attributes/arguments that have either `allow_nil?: true` or a non-nil default value. Defaults to `true`.
5151

5252
### Custom Random Generator
5353

0 commit comments

Comments
 (0)