Class: Katello::Api::V2::CapsulesController

Inherits:
Api::V2::SmartProxiesController
  • Object
show all
Defined in:
app/controllers/katello/api/v2/capsules_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



9
10
11
12
13
# File 'app/controllers/katello/api/v2/capsules_controller.rb', line 9

def index
  @smart_proxies = SmartProxy.with_content.authorized(:view_smart_proxies).includes(:features).
            search_for(*search_options).paginate(paginate_options)
  @total = SmartProxy.with_content.authorized(:view_smart_proxies).includes(:features).count
end

#resource_nameObject



21
22
23
# File 'app/controllers/katello/api/v2/capsules_controller.rb', line 21

def resource_name
  :smart_proxy
end

#showObject



17
18
19
# File 'app/controllers/katello/api/v2/capsules_controller.rb', line 17

def show
  super
end