heartcombo / devise

Flexible authentication solution for Rails with Warden.
http://blog.plataformatec.com.br/tag/devise/
MIT License
23.89k stars 5.54k forks source link

current_user issue in rails 6.1 #5557

Closed saad-siddique-tx closed 1 year ago

saad-siddique-tx commented 1 year ago

Pre-check

Environment

Current behavior

=> current_user method return me undefined method update_attributes after upgrade rails from 6.0.5 to 6.1 => update_attribute method was remove in 6.1 Include code samples, errors, steps to reproduce the error and stack traces if appropriate.

Will be even more helpful if you provide a sample application or a test case that reproduces the error.

Expected behavior

current_user return me the same result as in previous rails version like sign in user object

carlosantoniodasilva commented 1 year ago

Rails 6.1 support was officially added on Devise 4.8.0: https://github.com/heartcombo/devise/blob/main/CHANGELOG.md#480---2021-04-29

Please try upgrading and if that doesn't work report back with some steps to repro. Thanks.