diff options
-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 |