devise_token_auth icon indicating copy to clipboard operation
devise_token_auth copied to clipboard

DeviseTokenAuth::Concerns::User overrides default ActiveModel dirty behavior

Open andrewastrachan opened this issue 2 years ago • 0 comments

https://github.com/lynndylanhurley/devise_token_auth/blob/8f44a8c66fd772b2d33be4ba187c0b1a47caba2a/app/models/devise_token_auth/concerns/user.rb#L44

If I include the DeviseTokenAuth::Concerns::User concern in one of my models, I can not longer reliably check changes the email attribute via user#email_changed?. This can lead to very unexpected behavior.

andrewastrachan avatar Jul 27 '22 22:07 andrewastrachan