Class: ForemanVirtWhoConfigure::ApplicationController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/foreman_virt_who_configure/application_controller.rb

Direct Known Subclasses

ConfigsController

Instance Method Summary collapse

Instance Method Details

#resource_classObject



3
4
5
# File 'app/controllers/foreman_virt_who_configure/application_controller.rb', line 3

def resource_class
  self.class.to_s.sub(/Controller$/, '').singularize.constantize
end

#resource_nameObject



7
8
9
# File 'app/controllers/foreman_virt_who_configure/application_controller.rb', line 7

def resource_name
  'config'
end