Sha256: 0403849c87dde77cfd0704080245366bf08cc2f1405b5a16fa955a7536dbf185

Contents?: true

Size: 408 Bytes

Versions: 3

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

3 entries across 3 versions & 1 rubygems

Version Path
foreman_ansible-15.0.2 app/controllers/ui_ansible_roles_controller.rb
foreman_ansible-15.0.1 app/controllers/ui_ansible_roles_controller.rb
foreman_ansible-15.0.0 app/controllers/ui_ansible_roles_controller.rb