Sha256: a612a9191e3a5b6ee2184ce654ce0daad9df2661e3b4ad2d337a8e02f38d2e78

Contents?: true

Size: 459 Bytes

Versions: 13

Compression:

Stored size: 459 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Admin
    module Concerns
      module HasTabbedMenu
        extend ActiveSupport::Concern

        included do
          helper_method :tab_menu_name, :has_tab_menu?

          private

          def has_tab_menu? = true

          def tab_menu_name = raise NotImplementedError, "Need to define a `tab_menu_name` with the name from the `Decidim.menu` definition"
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-admin-0.29.1 app/controllers/decidim/admin/concerns/has_tabbed_menu.rb
decidim-admin-0.28.4 app/controllers/decidim/admin/concerns/has_tabbed_menu.rb
decidim-admin-0.29.0 app/controllers/decidim/admin/concerns/has_tabbed_menu.rb
decidim-admin-0.28.3 app/controllers/decidim/admin/concerns/has_tabbed_menu.rb
decidim-admin-0.29.0.rc4 app/controllers/decidim/admin/concerns/has_tabbed_menu.rb
decidim-admin-0.29.0.rc3 app/controllers/decidim/admin/concerns/has_tabbed_menu.rb
decidim-admin-0.29.0.rc2 app/controllers/decidim/admin/concerns/has_tabbed_menu.rb
decidim-admin-0.29.0.rc1 app/controllers/decidim/admin/concerns/has_tabbed_menu.rb
decidim-admin-0.28.2 app/controllers/decidim/admin/concerns/has_tabbed_menu.rb
decidim-admin-0.28.1 app/controllers/decidim/admin/concerns/has_tabbed_menu.rb
decidim-admin-0.28.0 app/controllers/decidim/admin/concerns/has_tabbed_menu.rb
decidim-admin-0.28.0.rc5 app/controllers/decidim/admin/concerns/has_tabbed_menu.rb
decidim-admin-0.28.0.rc4 app/controllers/decidim/admin/concerns/has_tabbed_menu.rb