plataformatec/devise — pull request #2960 by kgiszczak (2014-03-31 16:48:15+00:00)
Title: Use full urls instead of just paths when redirecting in failure app.

It correctly redirects to urls that use for example subdomain constraints.
Using this routes:
```
devise_for :users, skip: [ :sessions ]

constraints subdomain: 'users' do
devise_scope :user do
get 'sign-in' => 'sessions#new', as: 'new_user_session'
end
end
```
Without this patch, when accessing authenticated resource on main domain eg. http://domain.com/posts, user is being redirected to http://domain.com/sign-in which is incorrect. With this patch user is redirected correctly to http://users.domain.com