Class: SimpleContentManagement::SimpleMenuItem
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- SimpleContentManagement::SimpleMenuItem
- Defined in:
- app/models/simple_content_management/simple_menu_item.rb
Instance Method Summary collapse
Instance Method Details
#parents ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'app/models/simple_content_management/simple_menu_item.rb', line 17 def parents parents = [] parent = self while parent.parent.present? parents << parent.parent parent = self.parent end return parents end |
#simple_menu ⇒ Object
13 14 15 |
# File 'app/models/simple_content_management/simple_menu_item.rb', line 13 def SimpleContentManagement::SimpleMenu.find end |