I have a traditional Rails 4 app with a User model and Sorcery for authentication. The User model has an 'admin' flag. What's the best way to implement the ability for admins to temporarily become another user (in order to see what the user sees to help debug a problem) and then pop back to being their original, admin-enabled user?
here's a implementation:
http://robots.thoughtbot.com/how-to-masquerade-as-another-user-to-see-how-they-use-yo
I think this was what you were looking for