plataformatec/devise — Issue #1666: after_sign_in_path_for in registrations_controller might get called with nil resource
Author: mreinsch
Created: 2012-02-20 05:12:06+00:00
State: open

We're seeing a strange issue where after_sign_in_path_for in our custom registrations_controller gets called with a nil resource. As I understand it, this should never happen.

The call comes from devise/app/controllers/devise_controller.rb:95:in `require_no_authentication'. I can reproduce the issue when accessing the sign up path for the resource while being logged in. I couldn't reproduce with an rspec acceptance test though.