From c000b9ec8cf6568f3baf2ced8e3100c7374925dd Mon Sep 17 00:00:00 2001 From: ddieulivol <120561341+ddieulivol@users.noreply.github.com> Date: Fri, 23 Aug 2024 17:00:26 +0200 Subject: [PATCH] [Docs] Add proper factory definition in example (#1688) --- docs/src/traits/using.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/src/traits/using.md b/docs/src/traits/using.md index 46e88111..1faedbd7 100644 --- a/docs/src/traits/using.md +++ b/docs/src/traits/using.md @@ -31,6 +31,11 @@ the "Building or Creating Multiple Records" section of this file. factory :user do name { "Friendly User" } + trait :active do + name { "John Doe" } + status { :active } + end + trait :admin do admin { true } end