Class: MixRailsSongs::Engine

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

Instance Method Summary collapse

Instance Method Details



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/mix-rails-songs/engine.rb', line 9

def navigation
  if defined? Admix
    Admix::Navigation::NavBar.post_menu do
      Admix::Navigation::NavBar.find(:content) do |menu|
        menu.submenu do |submenu|
          submenu.key   = :songs
          submenu.title = I18n.t 'songs.songs'
          submenu.url   = 'admix_songs_url'
        end
      end
    end
  end
end