nesquena/rabl — pull request #300 by braddunbar (2012-07-27 12:41:19+00:00)
Title: Pass data object to rendered block.

In a child block, I often need to conditionally render some portion based on properties of the data object. Ideally, the data object would be passed in to the block like so:

```ruby
child :obj do |obj|
attribute :x if obj.condition?
end
```

However, no arguments are passed to the block and I generally use one of several ugly workarounds involving `node` and `glue`. This patch allows the above by passing the data object to the child block.