Sha256: 5c85180ac0550889c95783b5114bd396f45597fac9701e160658a95de89a1c42

Contents?: true

Size: 391 Bytes

Versions: 86

Compression:

Stored size: 391 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 ||= ::Decidim::MenuPresenter.new(
          :admin_menu,
          self,
          active_class: "is-active"
        )
      end
    end
  end
end

Version data entries

86 entries across 86 versions & 2 rubygems

Version Path
decidim-admin-0.23.6 app/helpers/decidim/admin/menu_helper.rb
decidim-admin-0.23.5 app/helpers/decidim/admin/menu_helper.rb
decidim-admin-0.23.4 app/helpers/decidim/admin/menu_helper.rb
decidim-admin-0.23.3 app/helpers/decidim/admin/menu_helper.rb
decidim-admin-0.23.2 app/helpers/decidim/admin/menu_helper.rb
decidim-admin-0.23.1 app/helpers/decidim/admin/menu_helper.rb
decidim-admin-0.23.1.rc1 app/helpers/decidim/admin/menu_helper.rb
decidim-admin-0.23.0 app/helpers/decidim/admin/menu_helper.rb
decidim-admin-0.22.0 app/helpers/decidim/admin/menu_helper.rb
decidim-admin-0.21.0 app/helpers/decidim/admin/menu_helper.rb
decidim-admin-0.20.1 app/helpers/decidim/admin/menu_helper.rb
decidim-admin-0.20.0 app/helpers/decidim/admin/menu_helper.rb
decidim-admin-0.19.1 app/helpers/decidim/admin/menu_helper.rb
decidim-admin-0.18.1 app/helpers/decidim/admin/menu_helper.rb
decidim-admin-0.19.0 app/helpers/decidim/admin/menu_helper.rb
decidim-admin-0.17.2 app/helpers/decidim/admin/menu_helper.rb
decidim-admin-0.18.0 app/helpers/decidim/admin/menu_helper.rb
decidim-admin-0.17.1 app/helpers/decidim/admin/menu_helper.rb
decidim-admin-0.16.1 app/helpers/decidim/admin/menu_helper.rb
decidim-admin-0.17.0 app/helpers/decidim/admin/menu_helper.rb