From 31e833bdd158fe0eb97e3e025c493f36a59364b2 Mon Sep 17 00:00:00 2001 From: Daniel Colson Date: Sat, 27 Oct 2018 21:39:14 -0400 Subject: [PATCH] Add note about build_stubbed and Marshal.dump [ci skip] Closes #1120 --- GETTING_STARTED.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GETTING_STARTED.md b/GETTING_STARTED.md index 995f2c2..d4f28f4 100644 --- a/GETTING_STARTED.md +++ b/GETTING_STARTED.md @@ -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 ------------------