Module: Cable::Menu::SimpleNavigationMethods
- Included in:
- Base
- Defined in:
- lib/cable/menu/simple_navigation_methods.rb
Instance Method Summary collapse
Instance Method Details
#items ⇒ Object
5 6 7 |
# File 'lib/cable/menu/simple_navigation_methods.rb', line 5 def items self.children.where(:show_in_menu => true) end |
#key ⇒ Object
9 10 11 |
# File 'lib/cable/menu/simple_navigation_methods.rb', line 9 def key self.title.underscore.gsub(" ", "_").gsub("'","") end |
#name ⇒ Object
13 14 15 |
# File 'lib/cable/menu/simple_navigation_methods.rb', line 13 def name self.title end |
#options ⇒ Object
17 18 19 20 |
# File 'lib/cable/menu/simple_navigation_methods.rb', line 17 def return Hash.new if self[:options].nil? self[:options] end |