From 661e8ffde52d43b839fe869101a6dac8f43e0e51 Mon Sep 17 00:00:00 2001 From: Joshua Clayton Date: Fri, 2 Sep 2011 14:53:09 -0400 Subject: [PATCH] Clarify factory modification in the context of traits --- GETTING_STARTED.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GETTING_STARTED.md b/GETTING_STARTED.md index 6294bb1..964c4d9 100644 --- a/GETTING_STARTED.md +++ b/GETTING_STARTED.md @@ -447,6 +447,8 @@ When modifying a factory, you can change any of the attributes you want (aside f A couple caveats: you can only modify factories (not sequences or traits) and callbacks *still compound as they normally would*. So, if the factory you're modifying defines an `after_create` callback, you defining an `after_create` won't override it, it'll just get run after the first callback. +You also can't modify attributes assigned by traits. So, if you have a trait that grants a name attribute, and you modify the factory to set the name, +it currently will reflect the name in the trait instead of the modified name. Building or Creating Multiple Records -------------------------------------