I'm using devise in my ruby-on-rails app. I have a User class and an AdminUser class using devise. In my admin panel I would like to logout all Users but not AdminUsers.
The best way to do this is to use the scope-level sign out methods. So, if you want to sign out all users (User class), then you would do this.
sign_out :user
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With