summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-02-23 17:29:27 -0600
committerHombreLaser <sebastian-440@live.com>2023-02-23 17:29:27 -0600
commit086d711a8d659b6135871cd932651a6d6344ab4c (patch)
tree1585a0b4675b684ab456a283d6eecb5b0d3b459e /app
parent89fa02058db1b533f5713ec75550ba140f2317d6 (diff)
Añade definición de logic
Diffstat (limited to 'app')
-rw-r--r--app/controllers/application_controller.rb4
1 files changed, 4 insertions, 0 deletions
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