# frozen_string_literal: true # The father class of all controllers. class ApplicationController < ActionController::API def logic Object.const_get("#{self.class}::#{action_name.camelize}Logic") end end