diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/application_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index b8c3f46..49609c0 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -2,7 +2,7 @@ # The father class of all controllers. class ApplicationController < ActionController::API - def logic - Object.const_get("#{self.class}::#{action_name.camelize}Logic") + def logic(permitted_params) + @logic ||= Object.const_get("#{self.class}::#{action_name.camelize}Logic").new(permitted_params) end end |