Sha256: 3c5e56f63f5b56a6e09b42a0ff07afb3e2c587d7f0c8d1add94df51109ad53d8

Contents?: true

Size: 380 Bytes

Versions: 6

Compression:

Stored size: 380 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Admin
    # This module includes helpers to manage menus in admin layout
    module MenuHelper
      # Public: Returns the main menu presenter object
      def main_menu
        @main_menu ||= MenuPresenter.new(
          :admin_menu,
          self,
          active_class: "is-active"
        )
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
decidim-admin-0.3.2 app/helpers/decidim/admin/menu_helper.rb
decidim-0.3.2 decidim-admin/app/helpers/decidim/admin/menu_helper.rb
decidim-admin-0.3.1 app/helpers/decidim/admin/menu_helper.rb
decidim-0.3.1 decidim-admin/app/helpers/decidim/admin/menu_helper.rb
decidim-admin-0.3.0 app/helpers/decidim/admin/menu_helper.rb
decidim-0.3.0 decidim-admin/app/helpers/decidim/admin/menu_helper.rb