diff options
author | HombreLaser <sebastian-440@live.com> | 2023-03-03 20:35:03 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-03-03 20:35:03 -0600 |
commit | 918beb3197275af56b914250aae4950b1f64de30 (patch) | |
tree | 8e116e7dfd5817b0d9b0dbab5032916a8c1caae0 /app/controllers | |
parent | 41a17f47ae275f8e84de03115e142cc23526bacc (diff) |
Corrige error en método destroy de authentications
Diffstat (limited to 'app/controllers')
-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 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 |