From 918beb3197275af56b914250aae4950b1f64de30 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Fri, 3 Mar 2023 20:35:03 -0600 Subject: Corrige error en método destroy de authentications 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 b9a6f08..ba60c1a 100644 --- a/app/controllers/api/authentications_controller.rb +++ b/app/controllers/api/authentications_controller.rb @@ -14,8 +14,7 @@ module Api end def destroy - current_user_account.session_key = nil - current_user_account.save + current_user_account.update_attribute(:session_key, nil) render status: :no_content end -- cgit v1.2.3