plataformatec/devise — pull request #2096 by adammcnamara (2012-10-10 14:03:19+00:00)
Title: Assigns object to self.resource, changing variable scope.

The Sessions Controller was assigning resource instead of self.resource, meaning the resource variable wasn't available outside of the method.

For example, RABL templates wouldn't have access to the resource object.

This changes the resource assignment to be similar to the other controllers.