README.md in devise_masquerade-0.0.7 vs README.md in devise_masquerade-0.0.8
- old
+ new
@@ -27,9 +27,13 @@
In the view you can use url helper for defining link:
= link_to "Login As", masquerade_path(user)
+In the model you'll need to add the parameter :masqueradable to the existing comma separated values in the devise method:
+
+ devise :invitable, :confirmable, :database_authenticatable, :registerable, :masqueradable
+
Add into your application_controller.rb:
before_filter :masquerade_user!
Instead of user you can use your resource name admin, student or another names.