Sha256: 38b7bfb27cc69b2c3e3c2b643a8550984ca4dc7e8fc6dca67fc182a3990ae254

Contents?: true

Size: 238 Bytes

Versions: 2

Compression:

Stored size: 238 Bytes

Contents

# frozen_string_literal: true

module ForemanResourceQuota
  class ApplicationController < ::ApplicationController
    def resource_class
      "ForemanResourceQuota::#{controller_name.singularize.classify}".constantize
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman_resource_quota-0.2.0 app/controllers/foreman_resource_quota/application_controller.rb
foreman_resource_quota-0.1.0 app/controllers/foreman_resource_quota/application_controller.rb