Sha256: d2bec63de45bde26336b300e13970e98210563a8a8e6098919744d121a83c3ba
Contents?: true
Size: 499 Bytes
Versions: 3
Compression:
Stored size: 499 Bytes
Contents
module DiscoveryHomeHelperPatch def self.included(base) base.send(:include, InstanceMethods) base.class_eval do alias_method_chain :settings_menu_items, :discovers_link end end module InstanceMethods # Adds a discovers link to the More menu def settings_menu_items_with_discovers_link menu_items = settings_menu_items_without_discovers_link menu_items[2][2].insert(2,['Discovered Hosts', :discovers]) if menu_items[2] menu_items end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
foreman_discovery-1.1.1 | lib/discovery_home_helper_patch.rb |
foreman_discovery-1.0.2 | lib/discovery_home_helper_patch.rb |
foreman_discovery-1.0.0 | lib/discovery_home_helper_patch.rb |