Module: ForemanExpireHosts::HostsHelper

Defined in:
app/helpers/foreman_expire_hosts/hosts_helper.rb

Instance Method Summary collapse

Instance Method Details

#expire_hosts_host_multiple_actionsObject



5
6
7
8
9
10
11
12
13
14
# File 'app/helpers/foreman_expire_hosts/hosts_helper.rb', line 5

def expire_hosts_host_multiple_actions
  actions = []
  if authorized_for(:controller => :hosts, :action => :select_multiple_expiration)
    actions << {
      action: [_('Change Expiration'), select_multiple_expiration_hosts_path],
      priority: 200
    }
  end
  actions
end