Merge branch 'fix/wiki_menu_item_include_children' w/o pull request.

pull/3/head
Martin Czuchra 12 years ago
commit e653c64f4f
  1. 5
      app/models/wiki_menu_item.rb

@ -6,7 +6,10 @@ class WikiMenuItem < ActiveRecord::Base
serialize :options, Hash
named_scope :main_items, lambda { |wiki_id|
{:conditions => {:wiki_id => wiki_id, :parent_id => nil}, :order => 'id ASC'}
{ :conditions => { :wiki_id => wiki_id,
:parent_id => nil },
:include => :children,
:order => 'id ASC' }
}
attr_accessible :name, :title

Loading…
Cancel
Save