dewski/json_builder — Issue #7: Block nullifies instance variables
Author: lagartoflojo
Created: 2011-11-29 04:44:29+00:00
State: open

With code looking like this:

```ruby
# show.json.json_builder
@person.href
url do
href @person.href
end
```

Rails throws:

```
undefined method `href' for nil:NilClass

Extracted source (around line #3):

1: @person.href
2: url do
3: href @person.href
4: end
```

Line 1 works as expected, but ```@person``` is nil in line 3.