Document that Ruby Hashes in lazy attributes need double curly brackets

Closes #854
This commit is contained in:
Joshua Clayton 2016-02-05 22:11:25 -05:00
parent 56cd630ca2
commit 08c65ebd74
1 changed files with 9 additions and 0 deletions

View File

@ -162,6 +162,15 @@ factory :user do
end
```
Because of the block syntax in Ruby, defining attributes as `Hash`es (for
serialized/JSON columns, for example) requires two sets of curly brackets:
```ruby
factory :program do
configuration { { auto_resolve: false, auto_define: true } }
end
```
Aliases
-------