switch_user
switch_user copied to clipboard
Easily switch current user
Hello, I am wondering if it is possible to conditionally return one of two redirections based on the current user type. It appears that I cant pass a current_user third...
For years the code below worked to access `original_user` from an application, but it seems to have stopped in the past few weeks. Any chance this is stemming from the...
Auto corrected by following Format Ruby Code Click [here](https://awesomecode.io/repos/flyerhzm/switch_user/format_configs/ruby) to configure it on awesomecode.io
Hello. I think I may have found a bug. Simplified version of my routes config looks like this: ``` 1: devise_for :admin_users, {class_name: 'User'}.merge(ActiveAdmin::Devise.config) 2: ActiveAdmin.routes(self) 3: devise_for :users ```...
Auto corrected by following Format Ruby Code Click [here](https://awesomecode.io//repos/flyerhzm/switch_user/format_configs/ruby) to configure it on awesomecode.io
The readme lists this url as an example site. It redirects to `https`, and then chrome blocks it because the cert is invalid. http://switch-user-example.heroku.com/admin
Auto corrected by following Lint Ruby EmptyLine Click [here](https://awesomecode.io/repos/flyerhzm/switch_user/ruby_config_groups/325) to configure it on awesomecode.io
helo when i want to switch back to original user. it returns a nill value so how do we solve this?
In new version config.controller_guard's lambda can use up to 4 arguments, but template contains only 2. I need the controller, and spent 3 hours to found it.
Hello, I don't want to use the `switch_user_select` (because we have too many users, and it does not fit the way we're doing things). Instead, I'm generating a switch user...