Revision abd8f1d1
Added by Daniel Lobato Garcia over 9 years ago
app/controllers/api/v2/host_classes_controller.rb | ||
---|---|---|
module Api
|
||
module V2
|
||
class HostClassesController < V2::BaseController
|
||
|
||
include Api::Version2
|
||
include Api::TaxonomyScope
|
||
|
||
... | ... | |
@host = Host.find(params[:host_id]) if Host::Managed.respond_to?(:authorized) &&
|
||
Host::Managed.authorized("view_host", Host::Managed)
|
||
end
|
||
|
||
end
|
||
end
|
||
end
|
Also available in: Unified diff
Refs #3809 - Remove cops for empty lines