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



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

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



23
24
25
# File 'app/controllers/katello/api/v2/capsules_controller.rb', line 23

def resource_name
  :smart_proxy
end

#showObject



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

def show
end