Module: ForemanCustomTab::HostsControllerExtensions
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/controllers/concerns/foreman_custom_tab/hosts_controller_extensions.rb
Overview
Example: Plugin’s HostsController inherits from Foreman’s HostsController
Instance Method Summary collapse
Instance Method Details
#summary ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'app/controllers/concerns/foreman_custom_tab/hosts_controller_extensions.rb', line 6 def summary # We can't add a before_filter :find_resource for Cockpit actions as # it'll override the default find_resource filter. find_resource render :partial => 'foreman_custom_tab/hosts/summary', :locals => { :host => @host } rescue ActionView::Template::Error => exception process_ajax_error exception, 'fetch summary information' end |