devise_masquerade
devise_masquerade copied to clipboard
Print originating user name
Hi,
is there any way to get the details from the originating user?
I want to display "Switch back to
Thx and greetings
Holger
You can use the #{name}_masquerade_owner to get the instance that is masquerading, and then call it's name method.
So for example, if your user-class is called User, you could call user_masquerade_owner to get a reference to the instance of the class that is masquerading