I have a Rails 6.1 app. I store a session variable for excluded notifications. A user can disable a notification and the specific notification is stored in a session variable.