Sha256: 6d44a7f2e69c8c385c0852ae871b9b66d75cb0efb4ea3c5e39814e15909a8f04

Contents?: true

Size: 428 Bytes

Versions: 7

Compression:

Stored size: 428 Bytes

Contents

module ForemanSetup
  module HomeHelperExt
    extend ActiveSupport::Concern

    included do
      alias_method_chain :settings_menu_items, :provisioners_link
    end

    def settings_menu_items_with_provisioners_link
      menu_items = settings_menu_items_without_provisioners_link
      menu_items[2][2].insert(7, [_('Provisioning Setup'), :'foreman_setup/provisioners']) if menu_items[2]
      menu_items
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
foreman_setup-2.0.1 app/helpers/concerns/foreman_setup/home_helper_ext.rb
foreman_setup-2.0.0 app/helpers/concerns/foreman_setup/home_helper_ext.rb
foreman_setup-1.0.4 app/helpers/concerns/foreman_setup/home_helper_ext.rb
foreman_setup-1.0.3 app/helpers/concerns/foreman_setup/home_helper_ext.rb
foreman_setup-1.0.2 app/helpers/concerns/foreman_setup/home_helper_ext.rb
foreman_setup-1.0.1 app/helpers/concerns/foreman_setup/home_helper_ext.rb
foreman_setup-1.0.0 app/helpers/concerns/foreman_setup/home_helper_ext.rb