Sha256: d2a9571ad90d7b986a363d1b6f4eb27ec69891d6fa09113eac95285cc8d3b393
Contents?: true
Size: 800 Bytes
Versions: 4
Compression:
Stored size: 800 Bytes
Contents
module Fae module NavItems extend ActiveSupport::Concern # returns an array of hashes to build navigation in Fae's application_controller # # - prefix application named routes with `main_app.` # - prefix Fae names routes with `fae.` # - do not include dashboard or admin nav items # # format: # { text: 'Cities', path: main_app.admin_cities_path, class: 'if-you-want' }, # { # text: 'Items with sublinks', sublinks: [ # { text: 'Item Sublink 1', path: main_app.admin_some_path }, # { text: 'Item Sublink 2', path: main_app.admin_someother_path } # ] # } # }, # { text: 'Pages', path: fae.pages_path } def nav_items [ # scaffold inject marker ] end end end
Version data entries
4 entries across 4 versions & 1 rubygems