gregbell/active_admin — pull request #1488 by Daxter (2012-07-09 21:23:00+00:00)
Title: [1283] Parent Menu Items

For #1283
With these changes you can set ```parent_priority``` and ```parent_link``` to customize your parent menu in the case that it doesn't have its own model.

```ruby
menu :label => 'Users', :priority => 0, :parent => 'Administration',
:parent_priority => 13, :parent_link => :self
```

The parent link is in no way an optimal solution, and I'm welcome to suggestions. I just want to be able to point it to something other than "#" (nowhere). The idea is that I can link to the most often used child item.

Two concerns I have:
1. Ensuring that the these options still get to the parent in the case that the one child model where you defined the parent's settings doesn't get called first.
2. Ensuring that this is only called when the parent isn't associated with a model.

Tests are on the way!