where should i define a variable(collection) for it to be globally accessible both in all controller views and in layout? somewhere in Application controller or in session?
as an example
if current_user.has_role("admin")
@groups=Group.all
else
@groups=Group.all(:conditions => {:hidden => false})
end
@groups collection has to be accessible for rendering both in layout (in menu, for all other controllers) and in Group controller index view