From 086d711a8d659b6135871cd932651a6d6344ab4c Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Thu, 23 Feb 2023 17:29:27 -0600 Subject: Añade definición de logic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/application_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app') diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 13c271f..b8c3f46 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,4 +1,8 @@ # 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 -- cgit v1.2.3