There's a small variety of projects related to impersonating users for support purposes, but they all interfere with your project by requiring gems, routes and views to be added.
Deviser allows impersonation straight from the command line for projects using Devise.
Supported Ruby versions: 1.9.3 or higher
Licensed under the MIT license, see LICENSE for more information.
- Rails 3+ (this may need some testing)
- Devise
- Ruby Readline support
Since Deviser is shy and does not want to interfere with your project, it utilizes Homebrew's install technique to be portable and environment agnostic.
Please note: Verify the actual script before running this in production environments, we are not responsible for any mutated cats.
Run the following in the root of your Rails project:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/hyperoslo/deviser/master/deviser.rb)"
At the end of the wizard you'll be given a session key, which you can use in your browser to immediately log in as the requested user.
Same procedure as above, but run the following instead:
heroku run 'ruby -e "$(curl -fsSL https://raw.githubusercontent.com/hyperoslo/deviser/master/deviser.rb)"'
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create pull request
Hyper made this. We're a digital communications agency with a passion for good code, and if you're using this script we probably want to hire you.