Class: MixRailsVideos::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/mix-rails-videos/engine.rb

Instance Method Summary collapse

Instance Method Details



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/mix-rails-videos/engine.rb', line 3

def navigation
  if defined? Admix

    Admix::Navigation::NavBar.post_menu do
      Admix::Navigation::NavBar.find(:content) do |menu|
        menu.submenu do |submenu|
          submenu.key   = :videos
          submenu.title = I18n.t 'videos.videos'
          submenu.url   = 'admix_videos_url'
        end
      end
    end

  end
end