Module: ForemanTeamdynamix::HostsControllerExtensions

Extended by:
ActiveSupport::Concern
Defined in:
app/controllers/concerns/foreman_teamdynamix/hosts_controller_extensions.rb

Overview

Example: Plugin’s HostsController inherits from Foreman’s HostsController

Instance Method Summary collapse

Instance Method Details

#teamdynamixObject



6
7
8
9
10
11
# File 'app/controllers/concerns/foreman_teamdynamix/hosts_controller_extensions.rb', line 6

def teamdynamix
  find_resource
  render partial: 'foreman_teamdynamix/hosts/teamdynamix', :locals => { :host => @host }
rescue ActionView::Template::Error => e
  process_ajax_error e, 'fetch teamdynamix tab information'
end