When public role has no menu items

7 views
Skip to first unread message

MarkH

unread,
Feb 4, 2010, 6:30:43 PM2/4/10
to Ruby on Rails: Goldberg
Hi all,
I came across the situation today where I had been cleaning up the
menu system and inadvertently created the scenario where there are no
menus until the user logs in. So no menu items had the public Role
permissions. This gives a nil reference error when
Goldberg::Menu.get_menu returns nil. I changed this to return the
empty list instead and it seems to be fine.

mark

Reply all
Reply to author
Forward
0 new messages