vendredi 19 février 2016

Logout all users with sorcery

I need to logout all user in my rails application that uses sorcery. I tried running the code below in rails console but it says logout is undefined.

User.all.each { |user| logout user}

Aucun commentaire:

Enregistrer un commentaire