Sha256: 11c6c0199f882fae506efde085c96ce509cf376c649622aba73499b58ac71602

Contents?: true

Size: 408 Bytes

Versions: 6

Compression:

Stored size: 408 Bytes

Contents

class UiAnsibleRolesController < ::Api::V2::BaseController
  def resource_name(resource = 'AnsibleRole')
    super resource
  end

  def index
    @ui_ansible_roles = resource_scope_for_index(:permission => :view_ansible_roles)
  end

  # restore original method from find_common to ignore resource nesting
  def resource_scope(**kwargs)
    @resource_scope ||= scope_for(resource_class, **kwargs)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman_ansible-14.2.2 app/controllers/ui_ansible_roles_controller.rb
foreman_ansible-14.2.1 app/controllers/ui_ansible_roles_controller.rb
foreman_ansible-14.2.0 app/controllers/ui_ansible_roles_controller.rb
foreman_ansible-14.1.1 app/controllers/ui_ansible_roles_controller.rb
foreman_ansible-14.1.0 app/controllers/ui_ansible_roles_controller.rb
foreman_ansible-14.0.0 app/controllers/ui_ansible_roles_controller.rb