Sha256: ac43c5602f1d09285f7515c13bb145dab2967fa427737e0f61f8fc665b37a6ea
Contents?: true
Size: 635 Bytes
Versions: 2
Compression:
Stored size: 635 Bytes
Contents
module ForemanSalt module SmartProxiesHelperExtensions extend ActiveSupport::Concern module Overrides def proxy_actions(proxy, authorizer) actions = super if proxy.has_feature?('Salt') actions << display_link_if_authorized(_('Salt Keys'), :controller => 'foreman_salt/salt_keys', :action => 'index', :smart_proxy_id => proxy) actions << display_link_if_authorized(_('Salt Autosign'), :controller => 'foreman_salt/salt_autosign', :action => 'index', :smart_proxy_id => proxy) end actions end end included do prepend Overrides end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_salt-10.1.0 | app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb |
foreman_salt-10.0.0 | app/helpers/concerns/foreman_salt/smart_proxies_helper_extensions.rb |