ajsharp/bldr — Issue #14: Support cleaner syntax for nested collection properties
Author: ajsharp
Created: 2012-01-20 20:24:07+00:00
State: open

Currently, to perform operations on nested collections, we provide the `current_object` method:

```ruby
collection :posts do
attributes :title, :body

collection :comments => current_object.comments do
attributes :body, :author, :website
end
end
```

I would like to support a clean syntax for performing these operations, maybe something like the following:

```ruby
collection :posts do
attributes :title, :body

collection :comments => :comments do
attributes :body, :author, :website
end
end
```

And even:

```ruby
```ruby
collection :posts do
attributes :title, :body

collection :comments do
attributes :body, :author, :website
end
end
```
```