Demonstrates impersonating a user with Rails 4.1 and devise when you have the secret_key_base and the hashed password of a user.
To run:
rails runner lib/impersonate.rb
Run rake db:setup before running the app. It creates a few users for your convenience.