- Issue #6: Using user_impersonate with Rails models that manually set the table_name fails
- Issue #3: NoMethodError when calling config.staff_finder
-
Issue #2: "Support alternative model for staff users"
config.staff_class = 'User' config.staff_finder = 'find'
-
Bump minor version due initializer changes
- Issue #1: "Don't authenticate the user when trying to revert"
- Remove dependency on jquery and jquery_ujs from application.js manifest
- CI builds now test against Ruby 2.1.0 in addition to 1.9.3 and 2.0.0
- Rails 4 support courtesy of https://github.com/jamesharker/user_impersonate
- Can specify the sign in & authenticate methods to use
- Defaults for missing config now working
-
Options for specifying where redirects go to and their defaults:
config.redirect_on_impersonate = "/" config.redirect_on_revert = "/impersonate"
-
Fixed override code, so you can actually override now.
-
Options and their defaults:
config.user_class = "User" config.user_finder = "find" # User.find config.user_id_column = "id" # Such that User.find(aUser.id) works config.user_is_staff_method = "staff?" # current_user.staff?
-
Generator
rails g user_impersonate
- Impersonation mechanism works
- No generators
- No configurability