README.md in devise_masquerade-0.6.3 vs README.md in devise_masquerade-0.6.4
- old
+ new
@@ -137,10 +137,14 @@
Devise.masquerade_expires_in = 10.seconds
Devise.masquerade_key_size = 16 # size of the generate by SecureRandom.urlsafe_base64
Devise.masquerade_bypass_warden_callback = false
Devise.masquerade_routes_back = false # if true, route back to the page the user was on via redirect_back
Devise.masquerading_resource_class = User
+ # optional, default: masquerading_resource_class.model_name.param_key
+ Devise.masquerading_resource_name = :user
Devise.masqueraded_resource_class = AdminUser
+ # optional, default: masqueraded_resource_class.model_name.param_key
+ Devise.masqueraded_resource_name = :admin_user
```
## Demo project
cd spec/dummy