Class: MixRailsVouchers::Engine

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

Instance Method Summary collapse

Instance Method Details



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

def navigation
  if defined? Admix

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

  end
end