Class: Inferno::Web::Controllers::Controller

Inherits:
Hanami::Action
  • Object
show all
Defined in:
lib/inferno/apps/web/controllers/controller.rb

Class Method Summary collapse

Class Method Details

.callObject



7
8
9
# File 'lib/inferno/apps/web/controllers/controller.rb', line 7

def self.call(...)
  new.call(...)
end

.resource_classObject



30
31
32
# File 'lib/inferno/apps/web/controllers/controller.rb', line 30

def self.resource_class
  name.split('::')[-2].singularize
end

.resource_nameObject



26
27
28
# File 'lib/inferno/apps/web/controllers/controller.rb', line 26

def self.resource_name
  name.split('::')[-2].underscore
end