gregbell/active_admin — pull request #1002 by samvincent (2012-02-11 00:09:09+00:00)
Title: Issue #1001 - Sidebar conditional :if handles controller methods

Proposal solution to #1001

It would be nice to use controller helpers as symbols for sidebar conditionals.

The current implementation would call they symbol on SidebarSecition which is a bit useless.

It feels dirty to call `render_context.controller.send(:method)`, yet controller is the context that's most useful.

Alternatively, maybe `ActiveAdmin::Resource::Sidebars#sidebar_sections_for` could pass `render_context.controller` to `display_on?` since `Page::Base` is also useless.