summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-03-03 20:35:03 -0600
committerHombreLaser <sebastian-440@live.com>2023-03-03 20:35:03 -0600
commit918beb3197275af56b914250aae4950b1f64de30 (patch)
tree8e116e7dfd5817b0d9b0dbab5032916a8c1caae0 /app
parent41a17f47ae275f8e84de03115e142cc23526bacc (diff)
Corrige error en método destroy de authentications
Diffstat (limited to 'app')
-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 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