Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

Commit

Permalink
Add example for transients with default values
Browse files Browse the repository at this point in the history
  • Loading branch information
paulelliott committed May 6, 2013
1 parent e75c1ee commit 96132da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions views/_content.markdown
Expand Up @@ -230,6 +230,13 @@ You can specify multiple transients by passing them all to `transient`.
transient :one, :two, :three
end

You can also specify default values with an options hash at the end.

Fabricator(:fruit) do
transient :color, delicious: true
end


#### Reloading

If you need to reset fabrication back to its original state after it has been
Expand Down

0 comments on commit 96132da

Please sign in to comment.