Last Updated: February 25, 2016
·
3.903K
· scarfacedeb

Change Devise parent controller

If you need to change parent of Devise controllers, add this inside Devise initializer:

config.parent_controller = '<your controller>'

It can be useful, if you have before_action callbacks inside a controller and you want to call them in devise actions too.