Sha256: 78166f2a22daad2e102726754328eb36fafcf8cef8f6551676c076e1ab5f510b

Contents?: true

Size: 533 Bytes

Versions: 14

Compression:

Stored size: 533 Bytes

Contents

SimpleNavigation::Configuration.run do |navigation|  
  navigation.items do |admin|
    admin.item :admin, "Home", '/admin'
    admin.item :admin, "Menu", "/admin/menus" do |menus|
      if Cable.class_exists? "Menu"
        menus.item :new, "New Menu Item", new_admin_menu_path
      end
    end
    
    admin.item :global_setting, 'Global Settings', admin_cable_settings_path do |global_settings|
      global_settings.item :edit, "Edit Global Settings", edit_admin_cable_setting_path( Cable::Setting.last )
    end
    
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cable-0.9.17 config/admin_navigation.rb
cable-0.9.16 config/admin_navigation.rb
cable-0.9.15 config/admin_navigation.rb
cable-0.9.14 config/admin_navigation.rb
cable-0.9.13 config/admin_navigation.rb
cable-0.9.12 config/admin_navigation.rb
cable-0.9.11 config/admin_navigation.rb
cable-0.9.10 config/admin_navigation.rb
cable-0.9.9 config/admin_navigation.rb
cable-0.9.8 config/admin_navigation.rb
cable-0.9.6 config/admin_navigation.rb
cable-0.9.5 config/admin_navigation.rb
cable-0.9.4 config/admin_navigation.rb
cable-0.9.3 config/admin_navigation.rb