<% cache(:action_suffix => RefinerySetting.find_or_set(:refinery_menu_cache_action_suffix, "site_menu")) do %>
  <ul id='<%= dom_id ||= "menu" %>' class='menu clearfix'>
    <%= render :partial => "/shared/menu_branch", :collection => @menu_pages, :locals => {
      :hide_children => RefinerySetting.find_or_set(:menu_hide_children, false),
      :sibling_count => @menu_pages.size-1
    } -%>
  </ul>
<% end %>

<% cache(:action_suffix => RefinerySetting.find_or_set(:refinery_menu_cache_action_suffix, "site_menu")) do %>
  <ul id='<%= dom_id ||= "menu" %>' class='menu clearfix'>
    <%= render :partial => "/shared/menu_branch", :collection => (collection ||= @menu_pages), :locals => {
      :hide_children => RefinerySetting.find_or_set(:menu_hide_children, false),
      :sibling_count => (collection ||= @menu_pages).size-1
    } -%>
  </ul>
<% end %>

Add flexibility to be able to pass in another collection (of pages at this stage) to the menu
Add flexibility to be able to pass in another collection (of pages at this stage) to the menu
