For the case that we have Rails and Devise experts here, I could use some help with this issue.

Devise authenticate_admin_user! does not work after upgrading to rails 5.