summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/api/authentications_controller.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/api/authentications_controller.rb b/app/controllers/api/authentications_controller.rb
index 85ef3d4..d1ff5d2 100644
--- a/app/controllers/api/authentications_controller.rb
+++ b/app/controllers/api/authentications_controller.rb
@@ -6,8 +6,7 @@ module Api
AUTHENTICATION_ERROR = 'Credenciales incorrectas'
def create
- @logic = logic.new(permitted_params)
- @token = @logic.call
+ @token = logic(permitted_params).call
render json: @token, status: :ok and return if @token