In rails, if I am using devise for a table “users”, it creates a global variable current_user which is used throughout the code. I want to add a similar global variable (current_auth_user) without touching the devise code. Whats the best way to do that?
Share
In your application controller you can just add a helper method