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.
Written by Andrew Volozhanin
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#