Class: Refinery::Menus::Menu

Inherits:
Core::BaseModel
  • Object
show all
Defined in:
app/models/refinery/menus/menu.rb

Instance Method Summary collapse

Instance Method Details

#rootsObject



16
17
18
# File 'app/models/refinery/menus/menu.rb', line 16

def roots
  @roots ||= links.select {|pos| pos.parent_id.nil?}
end