From c1137534c858947e20c3d2636e5d0ac8b754b8ad Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Fri, 24 Feb 2023 21:29:40 -0600 Subject: Refactoriza declaraciĆ³n del objeto logic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/api/authentications_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app') 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 -- cgit v1.2.3