Module: Fae::NavigationConcern
- Extended by:
- ActiveSupport::Concern
- Included in:
- Navigation
- Defined in:
- app/models/concerns/fae/navigation_concern.rb,
lib/generators/fae/templates/models/concerns/navigation_concern.rb
Instance Method Summary collapse
-
#structure ⇒ Object
example structure with top nav:.
Instance Method Details
#structure ⇒ Object
example structure with top nav:
def structure
[
item('Top Nav Item 1', subitems: [
item('Top Nav Dropdown Item 1', class: 'custom-class', path: some_named_route_path),
item('Top Nav Dropdown Item 2', subitems: [
item('Side Nav Item 1', subitems: [
item('Side Nav Nested Item', path: some_named_route_path)
]),
item('Side Nav Item 1', path: some_named_route_path)
]),
]),
item('Pages', subitems: [
item('Home', path: fae.edit_content_block_path('home')),
item('About Us', path: fae.edit_content_block_path('about_us'))
])
]
end
31 32 33 |
# File 'lib/generators/fae/templates/models/concerns/navigation_concern.rb', line 31 def structure [] end |