module ForemanTasks::AuthorizerExt

Monkey path until projects.theforeman.org/issues/8919 is resolved and released

Public Instance Methods

resource_name_with_authorized_resource_name(klass) click to toggle source
# File lib/foreman_tasks/authorizer_ext.rb, line 11
def resource_name_with_authorized_resource_name(klass)
  if klass.respond_to?(:authorized_resource_name)
    klass.authorized_resource_name
  else
    resource_name_without_authorized_resource_name(klass)
  end
end