summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-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