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

Instance Method Details

#structureObject

define the navigation structure in this file example structure:

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



26
27
28
# File 'lib/generators/fae/templates/models/concerns/navigation_concern.rb', line 26

def structure
  []
end