Im using an Omniauth + Devise authentication system, where the user can register with his e-mail + password or with his Google+ account.
Now I need to use CanCanCan gem to check if the user that is loging in has permissions to go to the after login area, but I dont know where i can do that condition, in which file Devise stores the redirect after sucessfull login function?