Add note about build_stubbed and Marshal.dump

[ci skip]

Closes #1120
This commit is contained in:
Daniel Colson 2018-10-27 21:39:14 -04:00
parent e7f66fb2ba
commit 31e833bdd1
1 changed files with 3 additions and 0 deletions

View File

@ -187,6 +187,9 @@ user.first_name
# => "Joe"
```
Note that objects created with `build_stubbed` cannot be serialized with
`Marshal.dump`, since factory_bot defines singleton methods on these objects.
Static Attributes
------------------