diff options
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 49609c0..857414a 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -3,6 +3,6 @@ # 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) + @logic = Object.const_get("#{self.class}::#{action_name.camelize}Logic").new(permitted_params) end end |