From 08c65ebd74dae370513ce57e7a787aae2d0f168b Mon Sep 17 00:00:00 2001 From: Joshua Clayton Date: Fri, 5 Feb 2016 22:11:25 -0500 Subject: [PATCH] Document that Ruby Hashes in lazy attributes need double curly brackets Closes #854 --- GETTING_STARTED.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/GETTING_STARTED.md b/GETTING_STARTED.md index 1c1e34c..5f968de 100644 --- a/GETTING_STARTED.md +++ b/GETTING_STARTED.md @@ -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 -------