gregbell/active_admin — pull request #3276 by bamorim (2014-07-13 20:35:20+00:00)
Title: Added nested belongs_to functionality.

To fix #3274
Now it can handle multiple nested belongs_to (which inherited_resources already handles)

So
```ruby
ActiveAdmin.register Comment do
belongs_to :category, optional: true
belongs_to :post
end
```

The routes registered will be like
```ruby
namespace :admin do
resources :category do
resources :post do
resources :comment
end
end
resources :post do
resources :comment
end
end
```

Hope you like it!
Thank you