User_Switch
When you use the "devise" gem. User_Switch can switch login user in a very simple way.
Just follow these steps:
- Add to Gemfile in development group and bundle:
gem airbrake-local
- Run
rails generate user_switch:install <PROJECT_NAME>
- Change the configuration in config/initializers/user_switch.rb
- That's it!