plataformatec/devise — pull request #3042 by dropletzz (2014-05-26 15:19:41+00:00)
Title: Helper methods for groups of mappings

This provides the ability to define helper methods relative to groups of mappings.
For example if both User and Moderator can comment things you might need something like current_commenter, authenticate_commenter! or commenter_signed_in? to use in your CommentsController or in the views this will do the trick for you:
```
# config/routes.rb
devise_group :commenters, includes: [:user, :moderator]
```
(I didn't implement the session method because.. I didn't really know what to do, or whether it could be useful or not)