Class: Service::BaseController

Inherits:
Object
  • Object
show all
Includes:
Controller::BreadcrumbsConcern, Controller::CurrentEngineConcern, Controller::FeatureFlagsConcern, Controller::JsonApiConcern, Controller::PunditAuthorizationFailureHandlingConcern, Controller::PunditNamespacedAuthorizeConcern, Controller::ServiceActionsConcern, Controller::ServiceInflectionsConcern, Controller::ServiceUrlsConcern, Pundit
Defined in:
app/controllers/itsf/backend/service/base_controller.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Controller::BreadcrumbsConcern

#breadcrumbs, #breadcrumbs!

Methods included from Controller::PunditNamespacedAuthorizeConcern

#authorize, #engine_policy

Class Method Details

.service_classObject



27
28
29
# File 'app/controllers/itsf/backend/service/base_controller.rb', line 27

def self.service_class
  name.gsub('Controller', '').constantize
end

Instance Method Details

#service_classObject



31
32
33
# File 'app/controllers/itsf/backend/service/base_controller.rb', line 31

def service_class
  self.class.service_class
end