Sha256: 6a560dc906c0d92cf0c6f864f4d45fb0b69719e54c164f0639e5b566547e36c8

Contents?: true

Size: 258 Bytes

Versions: 24

Compression:

Stored size: 258 Bytes

Contents

# frozen_string_literal: true

module ForemanAcd
  # Base controller for all controllers
  class ApplicationController < ::ApplicationController
    def resource_class
      "ForemanAcd::#{controller_name.singularize.classify}".constantize
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
foreman_acd-0.11.0 app/controllers/foreman_acd/application_controller.rb
foreman_acd-0.10.0 app/controllers/foreman_acd/application_controller.rb
foreman_acd-0.9.7 app/controllers/foreman_acd/application_controller.rb
foreman_acd-0.9.5 app/controllers/foreman_acd/application_controller.rb
foreman_acd-0.9.4 app/controllers/foreman_acd/application_controller.rb
foreman_acd-0.9.3 app/controllers/foreman_acd/application_controller.rb
foreman_acd-0.9.2.3 app/controllers/foreman_acd/application_controller.rb
foreman_acd-0.9.2.2 app/controllers/foreman_acd/application_controller.rb
foreman_acd-0.9.2.1 app/controllers/foreman_acd/application_controller.rb
foreman_acd-0.9.2 app/controllers/foreman_acd/application_controller.rb
foreman_acd-0.9.1 app/controllers/foreman_acd/application_controller.rb
foreman_acd-0.9.0 app/controllers/foreman_acd/application_controller.rb
foreman_acd-0.7.0 app/controllers/foreman_acd/application_controller.rb
foreman_acd-0.6.0 app/controllers/foreman_acd/application_controller.rb
foreman_acd-0.5.0 app/controllers/foreman_acd/application_controller.rb
foreman_acd-0.4.0 app/controllers/foreman_acd/application_controller.rb
foreman_acd-0.3.0 app/controllers/foreman_acd/application_controller.rb
foreman_acd-0.2.1 app/controllers/foreman_acd/application_controller.rb
foreman_acd-0.0.6 app/controllers/foreman_acd/application_controller.rb
foreman_acd-0.0.5 app/controllers/foreman_acd/application_controller.rb