summaryrefslogtreecommitdiff
path: root/app/controllers/application_controller.rb
blob: 49609c0bdde9b0100e5fe903ef2f8b057245853b (plain)
1
2
3
4
5
6
7
8
# frozen_string_literal: true

# The father class of all controllers.
class ApplicationController < ActionController::API
  def logic(permitted_params)
    @logic ||= Object.const_get("#{self.class}::#{action_name.camelize}Logic").new(permitted_params)
  end
end