Skip to content

Commit

Permalink
[Docs] Add proper factory definition in example (#1688)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddieulivol authored Aug 23, 2024
1 parent 5a92a91 commit c000b9e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/src/traits/using.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c000b9e

Please sign in to comment.