Sha256: 1b310b5d01c9cf492ae661ba82e192e88df6844b7812b0f061adc55821f15d95
Contents?: true
Size: 486 Bytes
Versions: 2
Compression:
Stored size: 486 Bytes
Contents
module DiscoveryHomeHelperPatch def self.included(base) base.send(:include, InstanceMethods) base.class_eval do alias_method_chain :setting_options, :discovers_link end end module InstanceMethods # Adds a discovers link to the More menu def setting_options_with_discovers_link choices = setting_options_without_discovers_link choices[2][2].insert(2,['Discovered Hosts', :discovers]) authorized_menu_actions(choices) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_discovery-1.0.0.rc4 | lib/discovery_home_helper_patch.rb |
foreman_discovery-1.0.0.rc3 | lib/discovery_home_helper_patch.rb |