summaryrefslogtreecommitdiff
path: root/app/controllers/api
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-02-24 21:29:40 -0600
committerHombreLaser <sebastian-440@live.com>2023-02-24 21:29:40 -0600
commitc1137534c858947e20c3d2636e5d0ac8b754b8ad (patch)
tree7ee1a545108abbb9951f83de088a40367f4900d0 /app/controllers/api
parentf758b80b4818fd98753167366191b203cdab306a (diff)
Refactoriza declaraciĆ³n del objeto logic
Diffstat (limited to 'app/controllers/api')
-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