diff options
author | HombreLaser <sebastian-440@live.com> | 2023-02-24 21:29:40 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-02-24 21:29:40 -0600 |
commit | c1137534c858947e20c3d2636e5d0ac8b754b8ad (patch) | |
tree | 7ee1a545108abbb9951f83de088a40367f4900d0 /app/controllers/api | |
parent | f758b80b4818fd98753167366191b203cdab306a (diff) |
Refactoriza declaraciĆ³n del objeto logic
Diffstat (limited to 'app/controllers/api')
-rw-r--r-- | app/controllers/api/authentications_controller.rb | 3 |
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 |