Class: Katello::Api::V2::HostAutocompleteController

Inherits:
Api::V2::BaseController
  • Object
show all
Includes:
Foreman::Controller::AutoCompleteSearch
Defined in:
app/controllers/katello/api/v2/host_autocomplete_controller.rb

Instance Method Summary collapse

Instance Method Details

#action_permissionObject



20
21
22
# File 'app/controllers/katello/api/v2/host_autocomplete_controller.rb', line 20

def action_permission
  'view'
end

#model_of_controllerObject



16
17
18
# File 'app/controllers/katello/api/v2/host_autocomplete_controller.rb', line 16

def model_of_controller
  ::Host::Managed
end

#resource_name(_resource = nil) ⇒ Object



12
13
14
# File 'app/controllers/katello/api/v2/host_autocomplete_controller.rb', line 12

def resource_name(_resource = nil)
  'host'
end