diff options
author | HombreLaser <sebastian-440@live.com> | 2023-02-23 17:29:27 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-02-23 17:29:27 -0600 |
commit | 086d711a8d659b6135871cd932651a6d6344ab4c (patch) | |
tree | 1585a0b4675b684ab456a283d6eecb5b0d3b459e /app/controllers | |
parent | 89fa02058db1b533f5713ec75550ba140f2317d6 (diff) |
Añade definición de logic
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/application_controller.rb | 4 |
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 |