plataformatec/devise — pull request #2729 by matthewrudy (2013-11-08 14:43:51+00:00)
Title: Add store_location_for! helper

This is used as a complement to `stored_location_for`.

Example:

Before authorizing with Omniauth;

store_location_for!(:user, dashboard_path)
redirect_to user_omniauth_authorize_path(:facebook)

In our Omniauth callback

sign_in(user)
redirect_to stored_location_for(:user) || root_path