You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove support for using request.referer as redirect URL. (#5)
* Remove support for using `request.referer` as URL.
Redirects preserve the original `HTTP_REFERER` which isn't what we want.
You must either use `params[:redirect_url]` or pass an explicit URL with something like this:
```ruby
stash_redirect_for :sign_in, on: :new, url: :root_url
stash_redirect_for :sign_in, on: :new, url: -> { request.url }
```
* Remove use of referer and cut down some glue code
* People will be passing a block to this most likely
0 commit comments