gregbell/active_admin — Issue #1080: Different menu labels according CanCan roles
Author: savini
Created: 2012-02-28 00:38:23+00:00
State: open

Hey guys

I tried to show different labels in a menu item according users roles in CanCan, but I cant!

I think, if `menu :if => proc{ can?(:manage, AdminUser) }` works, maybe `menu :label => proc{ can?(:manage, AdminUser) ? "Users" : "My data"}` work too, but then i get a `undefined method `can?' for #` error...

Please, how can i do that?