On our Rails 5 app, I've been asked to implement a feature that shows the user a message if the software has been updated since their last login, and possibly enable it to do general announcements or a message of the day.
I'm fine with the logic for comparing login dates, retrieving messages, and whatnot, but it seems like this needs to interact with the Devise login process in some way, possibly a callback, and I don't have any idea how to do that. Some Googling hasn't led me to much.
I guess I'd just like some guidance as to how to get started. I planned just to use the notice/alert flash message feature, but I can go a different direction if that would be better.
Update: I found another SO entry that suggested using the after_database_authentication callback, but when I put that callback in my User model with a debugger, I don't seem to hit the code.