Redirect to request.fullpath instead of request.path
Imagine your application is an OAuth provider and application ABC will use you as the authentication service. From ABC, the user will get redirected to `oauth/authorize` with the needed params (`client_id`, `scope`, and others). If the user is not logged in, the provider will show the login form and after a successful login, the user should be redirected to `/ouath/authorize?client_id=123&scope=public` and not to `/oauth/authorize`, since this route is invalid.
Updated rails version
Reverted array identities
…r-non-get-request Adds redirect functionality for non-GET requests
Non GET requests will be redirected to the request referer after a successful sign in. GET requests will continue to be redirected to the requested path.
Uses gin index for the array column, which makes overlap checks much quicker