Sha256: 2e1c428fefb241ab533365821042bd1728cb7e9ec1e336bc527a522977927c1b

Contents?: true

Size: 353 Bytes

Versions: 113

Compression:

Stored size: 353 Bytes

Contents

module ForemanTasks
  # Monkey path until http://projects.theforeman.org/issues/8919 is
  # resolved and released
  module AuthorizerExt
    extend ActiveSupport::Concern

    def resource_name(klass)
      if klass.respond_to?(:authorized_resource_name)
        klass.authorized_resource_name
      else
        super klass
      end
    end
  end
end

Version data entries

113 entries across 113 versions & 1 rubygems

Version Path
foreman-tasks-10.0.2 lib/foreman_tasks/authorizer_ext.rb
foreman-tasks-10.0.1 lib/foreman_tasks/authorizer_ext.rb
foreman-tasks-10.0.0 lib/foreman_tasks/authorizer_ext.rb
foreman-tasks-9.2.3 lib/foreman_tasks/authorizer_ext.rb
foreman-tasks-9.2.2 lib/foreman_tasks/authorizer_ext.rb
foreman-tasks-9.2.1 lib/foreman_tasks/authorizer_ext.rb
foreman-tasks-9.2.0 lib/foreman_tasks/authorizer_ext.rb
foreman-tasks-9.1.1 lib/foreman_tasks/authorizer_ext.rb
foreman-tasks-9.0.4 lib/foreman_tasks/authorizer_ext.rb
foreman-tasks-9.1.0 lib/foreman_tasks/authorizer_ext.rb
foreman-tasks-9.0.2 lib/foreman_tasks/authorizer_ext.rb
foreman-tasks-9.0.1 lib/foreman_tasks/authorizer_ext.rb
foreman-tasks-8.3.3 lib/foreman_tasks/authorizer_ext.rb
foreman-tasks-9.0.0 lib/foreman_tasks/authorizer_ext.rb
foreman-tasks-8.2.1 lib/foreman_tasks/authorizer_ext.rb
foreman-tasks-8.1.4 lib/foreman_tasks/authorizer_ext.rb
foreman-tasks-8.3.2 lib/foreman_tasks/authorizer_ext.rb
foreman-tasks-8.3.1 lib/foreman_tasks/authorizer_ext.rb
foreman-tasks-8.1.3 lib/foreman_tasks/authorizer_ext.rb
foreman-tasks-8.3.0 lib/foreman_tasks/authorizer_ext.rb