Class: Service::BaseController

Inherits:
Object
  • Object
show all
Includes:
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::PunditNamespacedAuthorizeConcern

#authorize, #engine_policy

Class Method Details

.service_classObject



24
25
26
# File 'app/controllers/itsf/backend/service/base_controller.rb', line 24

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

Instance Method Details

#service_classObject



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

def service_class
  self.class.service_class
end